summaryrefslogtreecommitdiff
path: root/src/command/AllCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-12-27 06:43:55 +0100
committerMax Kellermann <max@duempel.org>2015-12-27 06:43:55 +0100
commit1c90400081c5f265964d03555f1fa6707ea614dc (patch)
treec8dd6de30bcdf0ad79b8475c82547f1752234b19 /src/command/AllCommands.cxx
parent672e18cac988ebe6c575ef6f155a4f7e17c31c03 (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.cxx2
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;
}