Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions source/framework/core/src/TRestMetadata.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
14 changes: 11 additions & 3 deletions source/framework/core/src/TRestThread.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}