mirror of https://github.com/aminya/setup-cpp
fix: report the error reason
This commit is contained in:
parent
d7f2e680b4
commit
a70ed6421c
|
@ -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}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue