diff --git a/lib/installer.js b/lib/installer.js index 569556c..7eccae9 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -214,6 +214,7 @@ function getFileInfo(versionInfo, version, arch) { return null; } if (!versionInfo[version]) { + core.error(`Encountered error: ${err}`); throw err; } for (let file of versionInfo[version].files) { @@ -233,6 +234,7 @@ function getFileInfo(versionInfo, version, arch) { } } } + core.error(`Encountered error: ${err}`); throw err; } exports.getFileInfo = getFileInfo; diff --git a/src/installer.ts b/src/installer.ts index b7ca4ff..a339d49 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -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 }