mirror of https://github.com/aminya/setup-cpp
fix: catch the errors of setupLLVMApt correctly
This commit is contained in:
parent
3206aaa7c3
commit
dd2f1139ce
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -44,7 +44,7 @@ async function setupLLVMOnly(version: string, setupDir: string, arch: string) {
|
||||||
const majorVersion = parseInt(coeredVersion.split(".")[0], 10)
|
const majorVersion = parseInt(coeredVersion.split(".")[0], 10)
|
||||||
try {
|
try {
|
||||||
if (isUbuntu()) {
|
if (isUbuntu()) {
|
||||||
return setupLLVMApt(majorVersion)
|
return await setupLLVMApt(majorVersion)
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
info(`Failed to install llvm via system package manager ${err}`)
|
info(`Failed to install llvm via system package manager ${err}`)
|
||||||
|
|
Loading…
Reference in New Issue