Fix incorrect exception type

refs #81659
This commit is contained in:
Gunnar Beutner 2015-01-14 15:55:28 +01:00
parent 2e0a04bddb
commit dd1cbb6fe7
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ using namespace icinga;
static Value ScriptFunctionCall(const std::vector<Value>& 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<ScriptFunction::Ptr>(vframe->Self);