Skip to content

Commit 76ec477

Browse files
committed
fixup! fixup! fixup! bootstrap: check more metadata when loading the snapshot
1 parent 6f4a5e7 commit 76ec477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,8 +1256,8 @@ int LoadSnapshotDataAndRun(const SnapshotData** snapshot_data_ptr,
12561256
std::unique_ptr<SnapshotData> read_data = std::make_unique<SnapshotData>();
12571257
if (!SnapshotData::FromBlob(read_data.get(), fp)) {
12581258
// If we fail to read the customized snapshot, simply exit with 1.
1259-
result->exit_code = 1;
1260-
return result->exit_code;
1259+
exit_code = 1;
1260+
return exit_code;
12611261
}
12621262
*snapshot_data_ptr = read_data.release();
12631263
fclose(fp);

0 commit comments

Comments
 (0)