Skip to content

Commit

Permalink
Improve error message in GenomicsDBImport (#7375)
Browse files Browse the repository at this point in the history
* The UserException when failing to open a FeatureReader now includes the message from the underlying error.
It was previously hard to understand WHY we had failed to open a reader.  See #7362 for an example
  • Loading branch information
lbergelson authored Jul 28, 2021
1 parent b4cba37 commit 9951f77
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,8 @@ public VariantContext next() {
}
};
} catch (final TribbleException e){
throw new UserException("Failed to create reader from " + variantURI, e);
throw new UserException("Failed to create reader from " + variantURI + " because of the following error:\n\t"
+ e.getMessage(), e);
}
}

Expand Down

0 comments on commit 9951f77

Please sign in to comment.