Skip to content

Commit 65e3555

Browse files
committed
Add message when aborting due to timeout
1 parent 106d1c2 commit 65e3555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
export function abortAfterTimeout(timeoutMs: number): AbortSignal {
55
const controller = new AbortController();
66
setTimeout(() => {
7-
controller.abort();
7+
controller.abort("Timeout exceeded");
88
}, timeoutMs);
99

1010
return controller.signal;

0 commit comments

Comments
 (0)