fix: catch the errors of setupLLVMApt correctly

This commit is contained in:
Amin Yahyaabadi 2023-07-17 13:55:49 -07:00
parent 3206aaa7c3
commit dd2f1139ce
7 changed files with 7 additions and 7 deletions

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

View File

@ -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}`)