]> git.tuebingen.mpg.de Git - paraslash.git/commit
Implement better error diagnostics for para_client.
authorAndre Noll <maan@systemlinux.org>
Tue, 30 Sep 2008 20:23:18 +0000 (22:23 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 30 Sep 2008 20:23:18 +0000 (22:23 +0200)
commit08e8e00a1cd0d48bd9a4189661cd6336e063e887
tree35956f47aa6327c4a384f4ec46fe2924e8a9e5f7
parent73b0bc66ce2f7b332e855434a393bf28da2ee0f0
Implement better error diagnostics for para_client.

In case the config file contains errors, the old code caused
para_client to exit without printing an error message.

We need print_errors == 0 in client_open() because this function
is also used by para_audiod which might not have a controlling
terminal. So use gengetopt's --no-handle-error option that instructs
the command line parser not to exit on errors. This wy we can use
PARA_ERROR_LOG() to log an appropriate error message.
NEWS
client.c
client.ggo
client_common.c
error.h