mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Refine errors text
This commit is contained in:
+3
-3
@@ -72,9 +72,9 @@ async function downloadAndExtract(platform, engine, version, rubyPrefix) {
|
||||
try {
|
||||
return await tc.downloadTool(url)
|
||||
} catch (error) {
|
||||
if (error.message.endsWith('404')) {
|
||||
throw new Error(`Unavailable version ${version} for ${engine} on ${platform}.
|
||||
You can request it at https://github.com/ruby/setup-ruby/issues.
|
||||
if (error.message.includes('404')) {
|
||||
throw new Error(`Unavailable version ${version} for ${engine} on ${platform}
|
||||
You can request it at https://github.com/ruby/setup-ruby/issues
|
||||
Original Error: (${error.message})`)
|
||||
} else {
|
||||
throw error
|
||||
|
||||
Reference in New Issue
Block a user