diff --git a/src/installer.ts b/src/installer.ts index 193ff16a..8128a7dc 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -116,9 +116,9 @@ export async function getNode( `Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded` ); } else { - core.info(err.message); + core.info((err as Error).message); } - core.debug(err.stack); + core.debug((err as Error).stack!); core.info('Falling back to download directly from Node'); } @@ -334,7 +334,7 @@ async function resolveVersionFromManifest( return info?.resolvedVersion; } catch (err) { core.info('Unable to resolve version from manifest...'); - core.debug(err.message); + core.debug((err as Error).message); } }