command/All: catch class Error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user