aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 23:28:27 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 23:28:27 +0200
commit68875ba600c635f985aa8deea7f940816a5e7645 (patch)
treeed0b2c4819dca0072d1642d1825492714db16e65 /src/main.c
parent2119a16e2479755dc9146e8a70b2642c7ed1db4a (diff)
downloadmpd-68875ba600c635f985aa8deea7f940816a5e7645.tar.gz
mpd-68875ba600c635f985aa8deea7f940816a5e7645.tar.xz
mpd-68875ba600c635f985aa8deea7f940816a5e7645.zip
database: return GError on failure
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index a57a19a81..e73f5ade0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -182,9 +182,10 @@ glue_db_init_and_load(void)
if (!ret) {
g_warning("Failed to load database: %s", error->message);
g_error_free(error);
+ error = NULL;
- if (!db_check())
- exit(EXIT_FAILURE);
+ if (!db_check(&error))
+ MPD_ERROR("%s", error->message);
db_clear();