aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 21:40:28 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 21:53:42 +0200
commitb680753db88ea75cab6776aaf99c1635c9e48f68 (patch)
tree00709ecfbe53f2bf3b4d464f9f8132e2f16b0ed6 /src/main.c
parent35af940166da22a253cf8bbff48d6e7d63389d0b (diff)
downloadmpd-b680753db88ea75cab6776aaf99c1635c9e48f68.tar.gz
mpd-b680753db88ea75cab6776aaf99c1635c9e48f68.tar.xz
mpd-b680753db88ea75cab6776aaf99c1635c9e48f68.zip
log: return GError on initialization failure
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 52b1331c4..a80b4e17f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -332,7 +332,12 @@ int mpd_main(int argc, char *argv[])
stats_global_init();
tag_lib_init();
- log_init(options.verbose, options.log_stderr);
+
+ if (!log_init(options.verbose, options.log_stderr, &error)) {
+ g_warning("%s", error->message);
+ g_error_free(error);
+ return EXIT_FAILURE;
+ }
success = listen_global_init(&error);
if (!success) {