Skip to content

Commit

Permalink
Always print an error message, never error silently
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge committed Jul 13, 2024
1 parent 4778d3d commit 4374e95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export function getFileInfo(versionInfo, version: string, arch: string) {
}

if (!versionInfo[version]) {
core.error(`Encountered error: ${err}`)
throw err
}

Expand All @@ -206,6 +207,7 @@ export function getFileInfo(versionInfo, version: string, arch: string) {
}
}

core.error(`Encountered error: ${err}`)
throw err
}

Expand Down

0 comments on commit 4374e95

Please sign in to comment.