From 131f06367ff2fd9dc47e55b8c7ded861ac4f2355 Mon Sep 17 00:00:00 2001 From: zolliker Date: Wed, 16 Oct 2013 12:46:21 +0000 Subject: [PATCH] - modified error message when offline --- ascon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ascon.c b/ascon.c index 69c3e840..f8d364e6 100644 --- a/ascon.c +++ b/ascon.c @@ -130,7 +130,11 @@ static void AsconConnect(Ascon * a) } colon = strchr(a->hostport, ':'); if (colon == NULL) { - AsconError(a, "expected 'host:port' or 'unconnected'", 0); + if (strcmp(a->hostport, "unconnected") == 0) { + AsconError(a, "offline", 0); + } else { + AsconError(a, "expected 'host:port' or 'unconnected'", 0); + } return; } port = atoi(colon + 1);