From 1157d98d10d047c3fd8d2361e05650398ae11f59 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 23 Jul 2012 19:03:48 +0200 Subject: [PATCH] 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. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2