fix: report the error reason

This commit is contained in:
Amin Yahyaabadi 2021-09-18 08:07:43 -05:00
parent d7f2e680b4
commit a70ed6421c
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ export async function main(args: string[]): Promise<number> {
} }
} catch (e) { } catch (e) {
// push error message to the logger // push error message to the logger
core.error(e as string | Error)
errorMessages.push(`${tool} failed to install`) errorMessages.push(`${tool} failed to install`)
} }
} }
@ -174,6 +175,7 @@ export async function main(args: string[]): Promise<number> {
} }
} }
} catch (e) { } catch (e) {
core.error(e as string | Error)
errorMessages.push(`Failed to install the ${maybeCompiler}`) errorMessages.push(`Failed to install the ${maybeCompiler}`)
} }