Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion source/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,13 +647,14 @@ export class Session<
});
}
} catch (reason) {
logger.warn("Failed to perform request. ", reason);
if (reason instanceof Error && reason.name === "AbortError") {
logger.debug("Request was aborted. ", reason);
throw this.getErrorFromResponse({
exception: "AbortError",
content: reason.message,
});
}
logger.warn("Failed to perform request. ", reason);
throw reason;
}
}
Expand Down
Loading