summaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-10-28 23:00:10 +0200
committerMax Kellermann <max@musicpd.org>2016-10-29 10:01:50 +0200
commit78bf4ef5fa20cad2d91566ca82ad57de2dad0efb (patch)
tree89c3eab9a4c954263e59563203fcd6c99faec09a /src/Main.cxx
parent318d0b3976a419b71001ee9d5839b9066cc71c4f (diff)
db/Configured: migrate from class Error to C++ exceptions
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 1c3a3bcba..9a095b1c7 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -183,14 +183,9 @@ glue_db_init_and_load(void)
{
Error error;
instance->database =
- CreateConfiguredDatabase(instance->event_loop, *instance,
- error);
- if (instance->database == nullptr) {
- if (error.IsDefined())
- FatalError(error);
- else
- return true;
- }
+ CreateConfiguredDatabase(instance->event_loop, *instance);
+ if (instance->database == nullptr)
+ return true;
if (instance->database->GetPlugin().flags & DatabasePlugin::FLAG_REQUIRE_STORAGE) {
InitStorage();