Skip to content

Better error message when the file does not exist#15

Merged
yoann-dufresne merged 3 commits intoKmer-File-Format:mainfrom
jltsiren:main
Oct 17, 2023
Merged

Better error message when the file does not exist#15
yoann-dufresne merged 3 commits intoKmer-File-Format:mainfrom
jltsiren:main

Conversation

@jltsiren
Copy link
Copy Markdown
Contributor

Currently if you try opening a nonexistent KFF file for reading, you get an error message like:

terminate called after throwing an instance of 'std::out_of_range'
  what():  Read out of the file, Byte 0

This PR adds a more informative error message Cannot open file <filename>.

@yoann-dufresne yoann-dufresne merged commit c490ddb into Kmer-File-Format:main Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants