From ec8cfb46f08f820d56fa354341d8c939742faad8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 21 Jun 2016 09:22:29 +0200 Subject: [PATCH] daemon: Improve color error message. If the string passed to daemon_set_log_color_or_die() can not be parsed, we don't have a syntax error but an invalid argument. --- daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.c b/daemon.c index 478b0f47..5a92451a 100644 --- a/daemon.c +++ b/daemon.c @@ -74,7 +74,7 @@ static void daemon_set_log_color_or_die(char const *arg) color_parse_or_die(p, me->log_colors[ll]); return; err: - PARA_EMERG_LOG("%s: color syntax error\n", arg); + PARA_EMERG_LOG("%s: invalid color argument\n", arg); exit(EXIT_FAILURE); } -- 2.30.2