Merge pull request #765 from broadinstitute/rhl_improve_bad_file_err_msg

Catch RuntimeException and add the bad file name to the newly thown exce...
This commit is contained in:
jmthibault79 2014-11-05 10:59:38 -05:00
commit 8ddcff159e
1 changed files with 2 additions and 1 deletions

View File

@ -244,9 +244,10 @@ class ReferenceOrderedQueryDataPool extends ResourcePool<RMDTrack,LocationAwareS
}
} catch (FileNotFoundException e) {
throw new UserException.CouldNotReadInputFile(fileDescriptor.getName(), "it could not be found");
} catch (IOException e) {
} catch (IOException | RuntimeException e) {
throw new ReviewedGATKException("Unable to create iterator for rod named " + fileDescriptor.getName(),e);
}
}
@Override