Kmer-File-Format / kff-cpp-api

A C++ API to read and write kff files
GNU Affero General Public License v3.0
9 stars 9 forks source link

Better error message when the file does not exist #15

Closed jltsiren closed 1 year ago

jltsiren commented 1 year ago

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>.