diff options
author | Max Kellermann <max@duempel.org> | 2009-07-05 08:29:47 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-05 08:29:47 +0200 |
commit | 0c2ab17e91637fdc27f7b8dd5578e15a951e1420 (patch) | |
tree | 03b31c0b0f7a7e0883832b45de5827709cfbd351 /src/main.c | |
parent | 12e82b9e33de5c6c8b622560fd7224f4fef113e7 (diff) | |
download | mpd-0c2ab17e91637fdc27f7b8dd5578e15a951e1420.tar.gz mpd-0c2ab17e91637fdc27f7b8dd5578e15a951e1420.tar.xz mpd-0c2ab17e91637fdc27f7b8dd5578e15a951e1420.zip |
sticker: use GError for error handling
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index cdf403266..c19fc9324 100644 --- a/src/main.c +++ b/src/main.c @@ -231,6 +231,8 @@ int main(int argc, char *argv[]) Options options; clock_t start; bool create_db; + bool success; + GError *error = NULL; daemonize_close_stdin(); @@ -288,7 +290,10 @@ int main(int argc, char *argv[]) create_db = !openDB(&options); #ifdef ENABLE_SQLITE - sticker_global_init(config_get_path(CONF_STICKER_FILE)); + success = sticker_global_init(config_get_path(CONF_STICKER_FILE), + &error); + if (!success) + g_error("%s", error->message); #endif command_init(); |