C4AulScript::DirectExec: Throw on parsing errors, too, when fPassErrors is set.

rope
Julius Michaelis 2012-03-09 11:45:25 +01:00
parent ed5d615aab
commit 5716bb1e47
1 changed files with 4 additions and 2 deletions

View File

@ -1142,10 +1142,12 @@ C4Value C4AulScript::DirectExec(C4Object *pObj, const char *szScript, const char
}
catch (C4AulError *ex)
{
ex->show();
delete ex;
delete pFunc;
delete pScript;
ex->show();
if(fPassErrors)
throw;
delete ex;
return C4VNull;
}
pFunc->CodePos = 1;