From a70ed6421c0b9604928edfa3efab06cad5f268e5 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 18 Sep 2021 08:07:43 -0500 Subject: [PATCH] fix: report the error reason --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index e2d7d247..260d7f34 100644 --- a/src/main.ts +++ b/src/main.ts @@ -121,6 +121,7 @@ export async function main(args: string[]): Promise { } } catch (e) { // push error message to the logger + core.error(e as string | Error) errorMessages.push(`${tool} failed to install`) } } @@ -174,6 +175,7 @@ export async function main(args: string[]): Promise { } } } catch (e) { + core.error(e as string | Error) errorMessages.push(`Failed to install the ${maybeCompiler}`) }