From e51ea326bdee46d4d3ad471f5ded20cfa93d129e Mon Sep 17 00:00:00 2001 From: agheata Date: Mon, 30 Apr 2012 08:33:08 +0000 Subject: [PATCH] Executing now a wrong configuration macro stops the LEGO train. --- ANALYSIS/AliAnalysisTaskCfg.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ANALYSIS/AliAnalysisTaskCfg.cxx b/ANALYSIS/AliAnalysisTaskCfg.cxx index 48b598c19d6..731438d0f78 100644 --- a/ANALYSIS/AliAnalysisTaskCfg.cxx +++ b/ANALYSIS/AliAnalysisTaskCfg.cxx @@ -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; } //______________________________________________________________________________ -- 2.43.0