projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fc3773
)
daemon: Improve color error message.
author
Andre Noll
<maan@tuebingen.mpg.de>
Tue, 21 Jun 2016 07:22:29 +0000
(09:22 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 25 Jun 2016 10:50:52 +0000
(12:50 +0200)
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
patch
|
blob
|
history
diff --git
a/daemon.c
b/daemon.c
index 478b0f47acc94d3098cc17576599032f007b43ca..5a92451a4d0621f5c1abb8c8961a878132e8f4e3 100644
(file)
--- 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);
}