Missing/malformed GATK report files are user errors

This commit is contained in:
Eric Banks 2012-08-02 11:33:21 -04:00
parent cc01f844d4
commit e3f89fb054
1 changed files with 2 additions and 2 deletions

View File

@ -89,9 +89,9 @@ public class GATKReport {
reader = new BufferedReader(new FileReader(file));
reportHeader = reader.readLine();
} catch (FileNotFoundException e) {
throw new ReviewedStingException("Could not open file : " + file);
throw new UserException.CouldNotReadInputFile(file, "it does not exist");
} catch (IOException e) {
throw new ReviewedStingException("Could not read file : " + file);
throw new UserException.CouldNotReadInputFile(file, e);
}