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/CommandError.hxx | |
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/CommandError.hxx')
-rw-r--r-- | src/command/CommandError.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/CommandError.hxx b/src/command/CommandError.hxx index 5fc547339..4fb1bf8bc 100644 --- a/src/command/CommandError.hxx +++ b/src/command/CommandError.hxx @@ -24,7 +24,7 @@ #include "PlaylistError.hxx" namespace std { - class exception; + class exception_ptr; } class Response; @@ -40,6 +40,6 @@ CommandResult print_error(Response &r, const Error &error); void -PrintError(Response &r, const std::exception &e); +PrintError(Response &r, std::exception_ptr ep); #endif |