- modified error message when offline

This commit is contained in:
zolliker
2013-10-16 12:46:21 +00:00
parent 3e6501d806
commit 131f06367f

View File

@ -130,7 +130,11 @@ static void AsconConnect(Ascon * a)
} }
colon = strchr(a->hostport, ':'); colon = strchr(a->hostport, ':');
if (colon == NULL) { 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; return;
} }
port = atoi(colon + 1); port = atoi(colon + 1);