- modified error message when offline
This commit is contained in:
4
ascon.c
4
ascon.c
@ -130,7 +130,11 @@ static void AsconConnect(Ascon * a)
|
||||
}
|
||||
colon = strchr(a->hostport, ':');
|
||||
if (colon == NULL) {
|
||||
if (strcmp(a->hostport, "unconnected") == 0) {
|
||||
AsconError(a, "offline", 0);
|
||||
} else {
|
||||
AsconError(a, "expected 'host:port' or 'unconnected'", 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
port = atoi(colon + 1);
|
||||
|
Reference in New Issue
Block a user