summaryrefslogtreecommitdiff
path: root/src/account-server/main-account.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r--src/account-server/main-account.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp
index f203f363..d25fd0bb 100644
--- a/src/account-server/main-account.cpp
+++ b/src/account-server/main-account.cpp
@@ -143,10 +143,14 @@ static void initialize()
LOG_INFO("Using Config File: " << configPath);
LOG_INFO("Using Log File: " << logPath);
- // Open database.
- storage = new DALStorage;
- storage->open();
-
+ // Open database
+ try {
+ storage = new DALStorage;
+ storage->open();
+ } catch (std::string &error) {
+ LOG_FATAL("Error opening the database: " << error);
+ exit(1);
+ }
// --- Initialize the managers
// Initialize the slang's and double quotes filter.