Skip to content

Commit a26e1fb

Browse files
committed
Do not show a stacktrace if a process failed, only the message
* The stacktrace is confusing and rarely useful in that case.
1 parent 4d060a1 commit a26e1fb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

dist/index.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ export async function run() {
2323
try {
2424
await setupRuby()
2525
} catch (error) {
26-
core.setFailed(error.stack)
26+
if (/\bprocess\b.+\bfailed\b/.test(error.message)) {
27+
core.setFailed(error.message)
28+
} else {
29+
core.setFailed(error.stack)
30+
}
2731
}
2832
}
2933

0 commit comments

Comments
 (0)