command/Error: translate std::invalid_argument to ACK_ERROR_ARG
This commit is contained in:
parent
85c2b396ce
commit
7ef31f84a7
@ -97,6 +97,8 @@ ToAck(std::exception_ptr ep)
|
|||||||
#endif
|
#endif
|
||||||
} catch (const std::system_error &e) {
|
} catch (const std::system_error &e) {
|
||||||
return ACK_ERROR_SYSTEM;
|
return ACK_ERROR_SYSTEM;
|
||||||
|
} catch (const std::invalid_argument &e) {
|
||||||
|
return ACK_ERROR_ARG;
|
||||||
#if defined(__GLIBCXX__) && __GLIBCXX__ < 20151204
|
#if defined(__GLIBCXX__) && __GLIBCXX__ < 20151204
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user