X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=blobdiff_plain;f=scilab%2Fmodules%2Ffunctions%2Fsci_gateway%2Fcpp%2Fsci_exec.cpp;h=fe6f0572ecb54a06198d62cdb58a0ecd084df3ee;hp=344010bbe418cceed529e2e09299dcfd95330624;hb=1d99720d814dc1ab0db9319618bd8f0081757557;hpb=f4c82ea519bdd043178a863bac64defc07f0bad5 diff --git a/scilab/modules/functions/sci_gateway/cpp/sci_exec.cpp b/scilab/modules/functions/sci_gateway/cpp/sci_exec.cpp index 344010b..fe6f057 100644 --- a/scilab/modules/functions/sci_gateway/cpp/sci_exec.cpp +++ b/scilab/modules/functions/sci_gateway/cpp/sci_exec.cpp @@ -336,6 +336,11 @@ types::Function::ReturnValue sci_exec(types::typed_list &in, int _iRetCount, typ } catch (const ast::InternalError& ie) { + if (pMacro && ConfigVariable::getLastErrorFunction() == L"") + { + ConfigVariable::setLastErrorFunction(pMacro->getName()); + } + if (bErrCatch == false) { closeFile(file, iID, wstFile, pExp);