From 1049b080cc7e5f4fafe8af9731fc5cce0e490369 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 24 Oct 2007 14:38:14 +0200 Subject: [PATCH] afs.c execute_server_command(): Improve log message. --- afs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/afs.c b/afs.c index 2cbb010d..950b404e 100644 --- a/afs.c +++ b/afs.c @@ -833,7 +833,8 @@ static void execute_server_command(void) PARA_NOTICE_LOG("received: %s\n", buf); if (!strcmp(buf, "new")) { ret = open_next_audio_file(); - PARA_NOTICE_LOG("ret: %d\n", ret); + if (ret < 0) + PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret)); return; } PARA_ERROR_LOG("unknown command\n"); -- 2.39.2