Cleanup error messages

This commit is contained in:
Iwan Timmer
2015-05-26 16:27:32 +02:00
parent fd8bb4ac1b
commit ea79e1b980
9 changed files with 26 additions and 51 deletions

View File

@@ -53,7 +53,7 @@ static void applist(const char* address) {
static void stream(STREAM_CONFIGURATION* config, const char* address, const char* app, bool sops, bool localaudio) {
int appId = client_get_app_id(address, app);
if (appId<0) {
printf("Can't find app %s\n", app);
fprintf(stderr, "Can't find app %s\n", app);
exit(-1);
}
@@ -67,7 +67,7 @@ static void stream(STREAM_CONFIGURATION* config, const char* address, const char
hints.ai_socktype = SOCK_STREAM;
int err = getaddrinfo(address, NULL, &hints, &res);
if (err<0 || res == NULL) {
printf("Can't resolve host: %s\n", address);
fprintf(stderr, "Can't resolve host: %s\n", address);
exit(-1);
}
@@ -146,7 +146,7 @@ char* get_path(char* name) {
static void pair_check(void) {
if (!client_is_paired(NULL)) {
printf("You must pair with the PC first\n");
fprintf(stderr, "You must pair with the PC first\n");
exit(-1);
}
}