diff options
author | Max Kellermann <max@duempel.org> | 2011-09-09 23:28:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-09 23:28:27 +0200 |
commit | 68875ba600c635f985aa8deea7f940816a5e7645 (patch) | |
tree | ed0b2c4819dca0072d1642d1825492714db16e65 /src/main.c | |
parent | 2119a16e2479755dc9146e8a70b2642c7ed1db4a (diff) | |
download | mpd-68875ba600c635f985aa8deea7f940816a5e7645.tar.gz mpd-68875ba600c635f985aa8deea7f940816a5e7645.tar.xz mpd-68875ba600c635f985aa8deea7f940816a5e7645.zip |
database: return GError on failure
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 5 |
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(); |