diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx index 75926aa9c..2999e35f5 100644 --- a/src/command/AllCommands.cxx +++ b/src/command/AllCommands.cxx @@ -419,4 +419,8 @@ try { Response r(client, num); PrintError(r, std::current_exception()); return CommandResult::ERROR; +} catch (const Error &error) { + Response r(client, num); + print_error(r, error); + return CommandResult::ERROR; }