Skip to content

Commit 4f8e6c6

Browse files
author
Anthony Martin
committed
Fix checksum validation exit code
1 parent 2b42e9f commit 4f8e6c6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

programs/util/block_log_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ ExitCode validate_block_log_checksums_from_file(const fc::path &checksums_file,
466466
{
467467
print_simple_error_or_result_message("checksums file had " + std::to_string(fail_count) + " checksums that did NOT match", checksums_file, json_output, true);
468468
elog("checksums file had ${fail_count} checksums that did NOT match", (fail_count));
469+
return ExitCode::OperationFailed;
469470
}
470471
else
471472
{
@@ -1960,4 +1961,4 @@ FC_REFLECT_DERIVED(extended_signed_block_header, (hive::protocol::signed_block_h
19601961
(block_id)(signing_key))
19611962

19621963
FC_REFLECT_DERIVED(extended_signed_block, (extended_signed_block_header),
1963-
(transactions))
1964+
(transactions))

0 commit comments

Comments
 (0)