Improve handling and reporting of common errors

This commit is contained in:
Cameron Gutman
2015-06-25 02:43:25 -04:00
parent 790f86681a
commit bfd84705a1
2 changed files with 2 additions and 2 deletions

View File

@@ -252,7 +252,7 @@ int main(int argc, char* argv[]) {
address[0] = 0;
discover_server(address);
if (address[0] == 0) {
perror("Can't find server");
fprintf(stderr, "Autodiscovery failed. Specify an IP address next time.\n");
exit(-1);
}
}