From: Gunnar Beutner Date: Wed, 14 Jan 2015 14:55:28 +0000 (+0100) Subject: Fix incorrect exception type X-Git-Tag: v2.3.0~379 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd1cbb6fe7373b466ae39b3eef7d1866595bf154;p=icinga2 Fix incorrect exception type refs #81659 --- diff --git a/lib/base/scriptfunction-script.cpp b/lib/base/scriptfunction-script.cpp index b6a1eaff4..1ba64d666 100644 --- a/lib/base/scriptfunction-script.cpp +++ b/lib/base/scriptfunction-script.cpp @@ -27,7 +27,7 @@ using namespace icinga; static Value ScriptFunctionCall(const std::vector& args) { if (args.size() < 1) - BOOST_THROW_EXCEPTION(ScriptError("Too few arguments for call()")); + BOOST_THROW_EXCEPTION(std::invalid_argument("Too few arguments for call()")); ScriptFrame *vframe = ScriptFrame::GetCurrentFrame(); ScriptFunction::Ptr self = static_cast(vframe->Self);