From d96ddae133c6f8bb52d2da1fdd11d6c885c88db8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 15 Dec 2018 19:50:15 -0800 Subject: [PATCH] ircd::db: Propagate all errors from db::init_directory(). --- ircd/db.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ircd/db.cc b/ircd/db.cc index 8bbbe5a14..c4cdb94b2 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -235,15 +235,14 @@ try log, "Using database directory at `%s'", dbdir }; } -catch(const std::system_error &e) +catch(const fs::error &e) { - log::error + log::critical { log, "Cannot start database system: %s", e.what() }; - if(ircd::debugmode) - throw; + throw; } void