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