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:
@@ -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
|
||||
|
Reference in New Issue
Block a user