diff options
author | Max Kellermann <max@musicpd.org> | 2016-11-24 17:33:36 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-11-24 17:33:36 +0100 |
commit | 7ef31f84a7080194b06b8a03ec2174d86475d546 (patch) | |
tree | 965bbd1fe6437ed7adc2383ce82d4a929db997d6 /src/command | |
parent | 85c2b396cee92f0cc93f4c1101111994b6d2d412 (diff) |
command/Error: translate std::invalid_argument to ACK_ERROR_ARG
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/CommandError.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command/CommandError.cxx b/src/command/CommandError.cxx index dbf7a59ff..74fca78ab 100644 --- a/src/command/CommandError.cxx +++ b/src/command/CommandError.cxx @@ -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 |