diff options
author | Max Kellermann <max@duempel.org> | 2015-12-27 06:43:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-12-27 06:43:55 +0100 |
commit | 1c90400081c5f265964d03555f1fa6707ea614dc (patch) | |
tree | c8dd6de30bcdf0ad79b8475c82547f1752234b19 /src/command/AllCommands.cxx | |
parent | 672e18cac988ebe6c575ef6f155a4f7e17c31c03 (diff) |
command/Error: pass std::exception_ptr to PrintError()
Necessary to preserve type information. The try/catch sequence didn't
work previously.
Diffstat (limited to 'src/command/AllCommands.cxx')
-rw-r--r-- | src/command/AllCommands.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx index 8cc8f40c5..6e2af39fa 100644 --- a/src/command/AllCommands.cxx +++ b/src/command/AllCommands.cxx @@ -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; } |