Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tools: preserve-caught-error
  • Loading branch information
JLHwung committed Mar 3, 2026
commit 83e18a303feaa2b308b6d142fcf8bc27a6f42755
10 changes: 5 additions & 5 deletions test/common/sea.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function generateSEA(fixtureDir, options = {}) {
} catch (e) {
const message = `Cannot copy ${process.execPath} to ${outputFile}: ${inspect(e)}`;
if (verifyWorkflow) {
throw new Error(message);
throw new Error(message, { cause: e });
}
common.skip(message);
}
Expand Down Expand Up @@ -192,7 +192,7 @@ function generateSEA(fixtureDir, options = {}) {
} catch (e) {
const message = `Cannot inject ${seaPrepBlob} into ${outputFile}: ${inspect(e)}`;
if (verifyWorkflow) {
throw new Error(message);
throw new Error(message, { cause: e });
}
common.skip(message);
}
Expand All @@ -210,7 +210,7 @@ function signSEA(targetExecutable, verifyWorkflow = false) {
} catch (e) {
const message = `Cannot sign ${targetExecutable}: ${inspect(e)}`;
if (verifyWorkflow) {
throw new Error(message);
throw new Error(message, { cause: e });
}
common.skip(message);
}
Expand All @@ -221,7 +221,7 @@ function signSEA(targetExecutable, verifyWorkflow = false) {
} catch (e) {
const message = `Cannot find signtool: ${inspect(e)}`;
if (verifyWorkflow) {
throw new Error(message);
throw new Error(message, { cause: e });
}
common.skip(message);
}
Expand All @@ -232,7 +232,7 @@ function signSEA(targetExecutable, verifyWorkflow = false) {
} catch (e) {
const message = `Cannot sign ${targetExecutable}: ${inspect(e)}\n${stderr}`;
if (verifyWorkflow) {
throw new Error(message);
throw new Error(message, { cause: e });
}
common.skip(message);
}
Expand Down