From dd1cbb6fe7373b466ae39b3eef7d1866595bf154 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 14 Jan 2015 15:55:28 +0100 Subject: [PATCH] Fix incorrect exception type refs #81659 --- lib/base/scriptfunction-script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);