Skip to content

Commit

Permalink
fixup! fixup! fixup! bootstrap: check more metadata when loading the …
Browse files Browse the repository at this point in the history
…snapshot
  • Loading branch information
joyeecheung committed Aug 8, 2022
1 parent 6f4a5e7 commit 76ec477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,8 @@ int LoadSnapshotDataAndRun(const SnapshotData** snapshot_data_ptr,
std::unique_ptr<SnapshotData> read_data = std::make_unique<SnapshotData>();
if (!SnapshotData::FromBlob(read_data.get(), fp)) {
// If we fail to read the customized snapshot, simply exit with 1.
result->exit_code = 1;
return result->exit_code;
exit_code = 1;
return exit_code;
}
*snapshot_data_ptr = read_data.release();
fclose(fp);
Expand Down

0 comments on commit 76ec477

Please sign in to comment.