Skip to content

Commit ba42af3

Browse files
authored
Always print an error message, never error silently (#262)
* Always print an error message, never error silently * `npm run build`
1 parent 4778d3d commit ba42af3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/installer.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export function getFileInfo(versionInfo, version: string, arch: string) {
184184
}
185185

186186
if (!versionInfo[version]) {
187+
core.error(`Encountered error: ${err}`)
187188
throw err
188189
}
189190

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

210+
core.error(`Encountered error: ${err}`)
209211
throw err
210212
}
211213

0 commit comments

Comments
 (0)