-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added name of offending record to error message in SamPairUtil #1358
Conversation
Apologies about the CRLF->LF change. please use "hide whitespaces" to view the actual code change. |
Codecov Report
@@ Coverage Diff @@
## master #1358 +/- ##
===============================================
+ Coverage 67.849% 68.024% +0.174%
- Complexity 8283 8363 +80
===============================================
Files 563 563
Lines 33707 33994 +287
Branches 5657 5720 +63
===============================================
+ Hits 22870 23124 +254
- Misses 8659 8687 +28
- Partials 2178 2183 +5
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change itself seems fine to me.
// No need to advance if we have records remaining | ||
if (!records.isEmpty()) return; | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multi-line comments usually have a *
character at the start of each line. Or, you could use //
for each line of a multi-line comment.
Can you make another PR that doesn't show every line as being different? Nevermind, I see you updated from DOS->Unix.
This PR was inspired by broadinstitute/picard#201 where the error doesn't allow the user to investigate the offending record. By adding the record name to the exception message, the user can investigate more easily and fix the input.