Add message when aborting due to timeout

This commit is contained in:
Justin Spahr-Summers 2024-11-16 15:57:15 +00:00
commit 65e3555620
No known key found for this signature in database

View file

@ -4,7 +4,7 @@
export function abortAfterTimeout(timeoutMs: number): AbortSignal {
const controller = new AbortController();
setTimeout(() => {
controller.abort();
controller.abort("Timeout exceeded");
}, timeoutMs);
return controller.signal;