Use new TimeoutError

This commit is contained in:
ekzyis 2024-12-13 16:27:46 +01:00
parent adfbdeddba
commit 06a3a71eb9
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)
})
}