From: Andre Noll Date: Mon, 23 Jul 2012 17:03:48 +0000 (+0200) Subject: client: Don't print the same error message twice. X-Git-Tag: v0.4.13~54 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=1157d98d10d047c3fd8d2361e05650398ae11f59;ds=sidebyside client: Don't print the same error message twice. Currently, if the client task exits, the corresponding error message is printed both by client_post_select() and by main() of client.c. This patch makes main() print a generic "command failed" error message instead. --- diff --git a/client.c b/client.c index 8e3e021d..f8902572 100644 --- a/client.c +++ b/client.c @@ -612,7 +612,7 @@ int main(int argc, char *argv[]) case -E_BTR_EOF: ret = 0; break; - default: ret = ct->task.error; + default: ret = -E_SERVER_CMD_FAILURE; } } out: