Skip to content

Commit

Permalink
Replace fatal with error for files with status -3 that cannot be open…
Browse files Browse the repository at this point in the history
…ed, to allow the chain to skip bad files.
  • Loading branch information
mgheata authored and chiarazampolli committed Apr 28, 2021
1 parent c885176 commit 8355100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions STEER/STEERBase/AliInputEventHandler.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Long64_t AliInputEventHandler::GetEntries()
TChainElement *elem;
while ((elem = (TChainElement*) next())) {
if (elem->GetLoadResult() != 0)
AliFatal(Form("File %s has status=%d", elem->GetTitle(), elem->GetLoadResult()));
AliError(Form("###EEE### %s cannot be opened (status=%d)", elem->GetTitle(), elem->GetLoadResult()));
}
}
if (fTree->GetListOfFriends()) {
Expand All @@ -103,7 +103,7 @@ Long64_t AliInputEventHandler::GetEntries()
TChainElement *elem = nullptr;
while ((elem = (TChainElement*) next())) {
if (elem->GetLoadResult() != 0)
AliFatal(Form("Friend file %s has status=%d", elem->GetTitle(), elem->GetLoadResult()));
AliFatal(Form("Friend file %s cannot be opened has (status=%d)", elem->GetTitle(), elem->GetLoadResult()));
}
}
}
Expand Down

0 comments on commit 8355100

Please sign in to comment.