From 7ef31f84a7080194b06b8a03ec2174d86475d546 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Nov 2016 17:33:36 +0100 Subject: [PATCH] command/Error: translate std::invalid_argument to ACK_ERROR_ARG --- src/command/CommandError.cxx | 2 ++ 1 file changed, 2 insertions(+) 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