mirror of https://github.com/aminya/setup-cpp
fix: fix the timeout conversion and add a custom message
This commit is contained in:
parent
4c53a2d376
commit
54cbc0f1bf
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
|
@ -24,7 +24,8 @@ export async function installTool(
|
||||||
let hasLLVM = false
|
let hasLLVM = false
|
||||||
try {
|
try {
|
||||||
hasLLVM = await pTimeout(installToolImpl(tool, version, osVersion, arch, hasLLVM, setupCppDir, successMessages), {
|
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) {
|
} catch (e) {
|
||||||
// push error message to the logger
|
// push error message to the logger
|
||||||
|
|
Loading…
Reference in New Issue