Commit 7ef31f84 authored by Max Kellermann's avatar Max Kellermann

command/Error: translate std::invalid_argument to ACK_ERROR_ARG

parent 85c2b396
......@@ -97,6 +97,8 @@ ToAck(std::exception_ptr ep)
#endif
} catch (const std::system_error &e) {
return ACK_ERROR_SYSTEM;
} catch (const std::invalid_argument &e) {
return ACK_ERROR_ARG;
#if defined(__GLIBCXX__) && __GLIBCXX__ < 20151204
} catch (const std::exception &e) {
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment