diff --git a/source/framework/core/src/TRestMetadata.cxx b/source/framework/core/src/TRestMetadata.cxx index 4fcccc1fe..a2475d955 100644 --- a/source/framework/core/src/TRestMetadata.cxx +++ b/source/framework/core/src/TRestMetadata.cxx @@ -2630,18 +2630,23 @@ void TRestMetadata::SetError(string message, bool print) { fError = true; fNErrors++; if (message != "") { - fErrorMessage += message + "\n"; + // We keep only the last error message + fErrorMessage = message + "\n"; if (print) { cout << message << endl; } } } +/////////////////////////////////////////////// +/// \brief It retrieves a map of all parameter:value found in the metadata class +/// void TRestMetadata::SetWarning(string message, bool print) { fWarning = true; fNWarnings++; if (message != "") { - fWarningMessage += message + "\n"; + // We keep only the last warning message + fWarningMessage = message + "\n"; if (print) { RESTWarning << message << RESTendl; } diff --git a/source/framework/core/src/TRestThread.cxx b/source/framework/core/src/TRestThread.cxx index 1b56c0186..f85cc8a5c 100644 --- a/source/framework/core/src/TRestThread.cxx +++ b/source/framework/core/src/TRestThread.cxx @@ -585,13 +585,21 @@ void TRestThread::EndProcess() { if (fProcessChain[i]->GetWarning()) nWarnings++; } - if (nWarnings) + if (nWarnings) { RESTWarning << nWarnings - << " process warnings were found! Use run0->PrintWarnings(); to get additional info." + << " process warnings were found! Check them inside the generated root file: " << RESTendl; - if (nErrors) + RESTWarning << "restRoot output.root" << RESTendl; + RESTWarning << "[0] run->PrintWarnings(); to get additional info." << RESTendl; + } + if (nErrors) { RESTError << nErrors << " process errors were found! Use run0->PrintErrors(); to get additional info." << RESTendl; + RESTError << nErrors + << " process errors were found! Check them inside the generated root file: " << RESTendl; + RESTError << "restRoot output.root" << RESTendl; + RESTError << "[0] run->PrintErrors(); to get additional info." << RESTendl; + } delete fAnalysisTree; }