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:
commit
8ddcff159e
|
|
@ -244,9 +244,10 @@ class ReferenceOrderedQueryDataPool extends ResourcePool<RMDTrack,LocationAwareS
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
throw new UserException.CouldNotReadInputFile(fileDescriptor.getName(), "it could not be found");
|
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);
|
throw new ReviewedGATKException("Unable to create iterator for rod named " + fileDescriptor.getName(),e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue