command/Error: pass std::exception_ptr to PrintError()
Necessary to preserve type information. The try/catch sequence didn't work previously.
This commit is contained in:
@@ -418,6 +418,6 @@ try {
|
||||
return ret;
|
||||
} catch (const std::exception &e) {
|
||||
Response r(client, num);
|
||||
PrintError(r, e);
|
||||
PrintError(r, std::current_exception());
|
||||
return CommandResult::ERROR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user