mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
Do not show a stacktrace if a process failed, only the message
* The stacktrace is confusing and rarely useful in that case.
This commit is contained in:
+5
-1
@@ -68753,7 +68753,11 @@ async function run() {
|
||||
try {
|
||||
await setupRuby()
|
||||
} catch (error) {
|
||||
core.setFailed(error.stack)
|
||||
if (/\bprocess\b.+\bfailed\b/.test(error.message)) {
|
||||
core.setFailed(error.message)
|
||||
} else {
|
||||
core.setFailed(error.stack)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user