diff options
author | Max Kellermann <max@duempel.org> | 2016-02-07 01:01:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-07 01:01:10 +0100 |
commit | 0d8e44a079d5c2e14adf43df42164b597b98f81a (patch) | |
tree | f9235e27328940989c936d15db53d1050c59171d /src/Instance.cxx | |
parent | f097952b42e2d43a975df9d67457e27e2b5f6d6c (diff) |
db/DatabaseError: rename enum db_error and make strictly-typed
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r-- | src/Instance.cxx | 3 |
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; } |