mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 15:22:55 +08:00
reject don't throw
This commit is contained in:
parent
34a411f3c0
commit
d6f3ee93b8
@ -70,7 +70,7 @@ async function streamExtractInternal(
|
|||||||
|
|
||||||
const timeout = 30 * 1000
|
const timeout = 30 * 1000
|
||||||
const timerFn = (): void => {
|
const timerFn = (): void => {
|
||||||
throw new Error(`Blob storage chunk did not respond in ${timeout}ms `)
|
reject(new Error(`Blob storage chunk did not respond in ${timeout}ms `))
|
||||||
}
|
}
|
||||||
let timer = setTimeout(timerFn, timeout)
|
let timer = setTimeout(timerFn, timeout)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user