Merge pull request #1721 from stackernews/fix-missing-usage-of-timeout-error

Fix missing usage of new TimeoutError
This commit is contained in:
Keyan 2024-12-13 10:29:50 -06:00 committed by GitHub
commit bf541aa643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ function timeoutPromise (timeout) {
// if no timeout is specified, never settle
if (!timeout) return
setTimeout(() => reject(new Error(`timeout after ${timeout / 1000}s`)), timeout)
setTimeout(() => reject(new TimeoutError(timeout)), timeout)
})
}