]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Executing now a wrong configuration macro stops the LEGO train.
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Apr 2012 08:33:08 +0000 (08:33 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Apr 2012 08:33:08 +0000 (08:33 +0000)
ANALYSIS/AliAnalysisTaskCfg.cxx

index 48b598c19d6efb6615c687d4b01bba4fa4d1ea19..731438d0f78ac2f5a602b46b509c12f8e16752ba 100644 (file)
@@ -378,7 +378,14 @@ Long64_t AliAnalysisTaskCfg::ExecuteConfigMacro()
       Error("ExecuteConfigMacro", "Cannot load requested libraries: %s", fLibs.Data());
       return -1;
    }
-   return fConfigDeps->Exec();
+   Int_t error = 0;
+   Long64_t retval = fConfigDeps->Exec("", &error);
+   if (error != TInterpreter::kNoError)
+   {
+      Error("ExecuteMacro", "Macro interpretation failed");
+      return -1;
+   }
+   return retval;
 }
 
 //______________________________________________________________________________