aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/CommandError.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command/CommandError.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/CommandError.cxx b/src/command/CommandError.cxx
index 73e363f24..c94ffea63 100644
--- a/src/command/CommandError.cxx
+++ b/src/command/CommandError.cxx
@@ -101,6 +101,7 @@ print_error(Client &client, const Error &error)
command_error(client, (ack)error.GetCode(),
"%s", error.GetMessage());
return CommandResult::ERROR;
+#ifdef ENABLE_DATABASE
} else if (error.IsDomain(db_domain)) {
switch ((enum db_error)error.GetCode()) {
case DB_DISABLED:
@@ -112,6 +113,7 @@ print_error(Client &client, const Error &error)
command_error(client, ACK_ERROR_NO_EXIST, "Not found");
return CommandResult::ERROR;
}
+#endif
} else if (error.IsDomain(errno_domain)) {
command_error(client, ACK_ERROR_SYSTEM, "%s",
strerror(error.GetCode()));