diff --git a/src/swcio.cpp b/src/swcio.cpp index 129f70afe97cf6a1ca78475205f3d4ac75c54e78..63eae66d5dd07ed1ccae74cc686c0d3e07977475 100644 --- a/src/swcio.cpp +++ b/src/swcio.cpp @@ -86,9 +86,10 @@ bool starts_with(const std::string &str, const std::string &prefix) void check_parse_status(const std::istream &is) { - if (is.fail()) + if (is.fail()) { // If we try to read past the eof; fail bit will also be set throw swc_parse_error("could not parse value"); + } } template<typename T>