mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
2e0a04bddb
commit
dd1cbb6fe7
@ -27,7 +27,7 @@ using namespace icinga;
|
|||||||
static Value ScriptFunctionCall(const std::vector<Value>& args)
|
static Value ScriptFunctionCall(const std::vector<Value>& args)
|
||||||
{
|
{
|
||||||
if (args.size() < 1)
|
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();
|
ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
|
||||||
ScriptFunction::Ptr self = static_cast<ScriptFunction::Ptr>(vframe->Self);
|
ScriptFunction::Ptr self = static_cast<ScriptFunction::Ptr>(vframe->Self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user