checkpoint

This commit is contained in:
Daniel Olshansky
2026-02-09 22:58:19 -05:00
committed by Gustavo Madeira Santana
parent c38de551ed
commit 4531b7930b

View File

@@ -62,12 +62,10 @@ export function isAbortError(err: unknown): boolean {
if (name === "AbortError") {
return true;
}
// Check for "This operation was aborted" message from Node's undici
// Check for abort messages from Node's undici and other sources
// Only match the exact undici message, not any message containing "aborted"
const message = "message" in err && typeof err.message === "string" ? err.message : "";
if (message === "This operation was aborted") {
return true;
}
return false;
return message === "This operation was aborted";
}
function isFatalError(err: unknown): boolean {