Skip to content

Commit

Permalink
Don't report an exception at end-of-file
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Nov 8, 2024
1 parent 1c6c503 commit 8e28968
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/rmf3_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ int main(int argc, char** argv) {
}
}
catch (const std::exception &e) {
std::cerr << "Caught exception " << e.what() << std::endl;
// avro uses a plain exception to signal EOF
if (std::string(e.what()) != "EOF reached") {
std::cerr << "Caught exception " << e.what() << std::endl;
}
}
return 0;
}
Expand Down

0 comments on commit 8e28968

Please sign in to comment.