command/All: catch class Error

This commit is contained in:
Max Kellermann 2016-09-08 12:07:16 +02:00
parent f29949e14d
commit c60d65dd8f

View File

@ -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;
}