Commit c60d65dd authored by Max Kellermann's avatar Max Kellermann

command/All: catch class Error

parent f29949e1
...@@ -419,4 +419,8 @@ try { ...@@ -419,4 +419,8 @@ try {
Response r(client, num); Response r(client, num);
PrintError(r, std::current_exception()); PrintError(r, std::current_exception());
return CommandResult::ERROR; return CommandResult::ERROR;
} catch (const Error &error) {
Response r(client, num);
print_error(r, error);
return CommandResult::ERROR;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment