Skip to content

Commit 3c644cf

Browse files
committed
Better error if MSYS2 is missing
1 parent 101f62d commit 3c644cf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dist/index.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

windows.js

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ export async function downloadExtractAndSetPATH(ruby) {
3232
async function linkMSYS2() {
3333
const toolCacheVersions = tc.findAllVersions('Ruby')
3434
toolCacheVersions.sort()
35+
if (toolCacheVersions.length == 0) {
36+
throw new Error('Could not find MSYS2 in the toolcache')
37+
}
3538
const latestVersion = toolCacheVersions.slice(-1)[0]
3639
const latestHostedRuby = tc.find('Ruby', latestVersion)
3740

0 commit comments

Comments
 (0)