- modified error message when offline
This commit is contained in:
6
ascon.c
6
ascon.c
@ -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);
|
||||||
|
Reference in New Issue
Block a user