Skip to content

Commit

Permalink
Merge pull request #314 from rest-for-physics/lobis-trestrun
Browse files Browse the repository at this point in the history
Do not throw error if TRestRun is opened in a non writeable path
  • Loading branch information
lobis authored Oct 7, 2022
2 parents 4db5e14 + 5934631 commit 1ef5062
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/framework/core/src/TRestRun.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ void TRestRun::InitFromConfigFile() {
system((TString) "mkdir -p " + outputdir);
}
if (!TRestTools::isPathWritable(outputdir)) {
RESTError << "TRestRun: Output path does not exist or it is not writable." << RESTendl;
RESTError << "Path : " << outputdir << RESTendl;
exit(1);
RESTWarning << "TRestRun: Output path '" << outputdir << "' does not exist or it is not writable."
<< RESTendl;
}

// 4. Loop over sections to initialize metadata
Expand Down

0 comments on commit 1ef5062

Please sign in to comment.