From f5115afcd8125f072a617e230e3266ece5d70d93 Mon Sep 17 00:00:00 2001 From: Haneen Mahdin Date: Sat, 30 Jul 2022 09:00:56 +0530 Subject: [PATCH] Fix type for error messages --- src/installer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }