-
Notifications
You must be signed in to change notification settings - Fork 150
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
check: Adding line number to error messages. #392
check: Adding line number to error messages. #392
Conversation
|
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.
Thanks for contributing @smoe! 😄
Would be nice if you could address my suggestions 🙏
All accepted, very nice, many thanks! Let me quickly rebase this to reduce the number of commits. I presume you are happy with me squashing this all into one. |
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.
Thanks @smoe!
LGTM! 🚀
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
848b9f1
to
80a12ac
Compare
Hello,
ported this to dev but was running master when I got an error message that was triggered by an empty last line in the sample sheet. Found that only after adding line numbers to the error message and thought that this may be of interest to everyone to have. So, here it comes.
The change are the addition of an iterator and the formatting of the error message's context from "Line" to "Line {}".format(lineNo). For the error message on an invalid number of columns I also added the actual number of columns that were found.
Best,
Steffen
PR checklist
Would be happy to do so but need a bit of an instruction on how you want to integrate that into the testing on samplesheets that is already performed.
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).Tested the script on a local file.
CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).Not required.