diff --git a/IOPool/Input/src/InputFile.cc b/IOPool/Input/src/InputFile.cc index 016bb44c6a9b6..d9c1abd6e5fef 100644 --- a/IOPool/Input/src/InputFile.cc +++ b/IOPool/Input/src/InputFile.cc @@ -34,11 +34,10 @@ namespace edm { std::rethrow_exception(e); } if (!file_) { - return; + throw edm::Exception(errors::FileOpenError) << "TFile::Open failed."; } if (file_->IsZombie()) { - file_ = nullptr; // propagate_const has no reset() function - return; + throw edm::Exception(errors::FileOpenError) << "TFile::Open returned zombie."; } logFileAction(" Successfully opened file ", fileName);