fix: fix the timeout conversion and add a custom message

This commit is contained in:
Amin Yahyaabadi 2023-08-21 21:58:10 -07:00
parent 4c53a2d376
commit 54cbc0f1bf
7 changed files with 8 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

@ -24,7 +24,8 @@ export async function installTool(
let hasLLVM = false
try {
hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {
milliseconds: timeout * 60 * 1000,
milliseconds: timeout,
message: `Timeout while installing ${tool} ${version}. You can increase the timeout from options`,
})
} catch (e) {
// push error message to the logger