Skip to content

Commit

Permalink
Fix #615 - introduced property export.shouldStopWhenFail for stopping
Browse files Browse the repository at this point in the history
process when process failed
  • Loading branch information
Stastny committed Oct 19, 2018
1 parent 5bc3227 commit 38ec6b4
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -134,7 +134,11 @@ public void exportTree(String pid) throws IOException {
try{
store(exportDirectory, p, fedoraAccess.getAPIM().export(p, "info:fedora/fedora-system:FOXML-1.1", "archive"));
}catch(Exception ex){
LOGGER.warning("Cannot export object "+p+", skipping: "+ex);
if (configuration.getConfiguration().getBoolean("export.shouldStopWhenFail", true)) {
throw ex;
} else {
LOGGER.warning("Cannot export object "+p+", skipping: "+ex);
}
}
}
}
Expand Down

0 comments on commit 38ec6b4

Please sign in to comment.