Always print an error message, never error silently (#262)

* Always print an error message, never error silently

* `npm run build`
This commit is contained in:
Dilum Aluthge
2024-07-18 11:30:05 -04:00
committed by GitHub
parent 4778d3d0c8
commit ba42af3a54
2 changed files with 4 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ export function getFileInfo(versionInfo, version: string, arch: string) {
}
if (!versionInfo[version]) {
core.error(`Encountered error: ${err}`)
throw err
}
@@ -206,6 +207,7 @@ export function getFileInfo(versionInfo, version: string, arch: string) {
}
}
core.error(`Encountered error: ${err}`)
throw err
}