summaryrefslogtreecommitdiff
path: root/src/Instance.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r--src/Instance.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index 77059c26c..96a43c88a 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -37,7 +37,8 @@ Database *
Instance::GetDatabase(Error &error)
{
if (database == nullptr)
- error.Set(db_domain, DB_DISABLED, "No database");
+ error.Set(db_domain, int(DatabaseErrorCode::DISABLED),
+ "No database");
return database;
}