Skip to content

Commit

Permalink
Merge pull request #2295 from AntelopeIO/GH-2293-snapshot-error-main
Browse files Browse the repository at this point in the history
[5.0 -> main] Better error reporting on snapshot load exceptions
  • Loading branch information
heifner authored Mar 8, 2024
2 parents 7382d88 + 270fb70 commit 968a0fa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libraries/chain/snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,7 @@ void istream_snapshot_reader::validate() const {
("expected", expected_version)("actual", actual_version));

while (validate_section()) {}
} catch( const std::exception& e ) { \
snapshot_exception fce(FC_LOG_MESSAGE( warn, "Binary snapshot validation threw IO exception (${what})",("what",e.what())));
throw fce;
}
} FC_LOG_AND_RETHROW()
}

bool istream_snapshot_reader::validate_section() const {
Expand Down

0 comments on commit 968a0fa

Please sign in to comment.