trim comments

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-09-02 18:24:47 +03:00
parent 14824e26c9
commit 34c00e945d
5 changed files with 27 additions and 70 deletions
+2 -8
View File
@@ -15,10 +15,7 @@ function statusOnlyError(status: number) {
return new XrpcResponseError(method, new Response(null, {status}), undefined)
}
/**
* An `XrpcResponseError` as the PDS pipethrough produces it: the status is
* rewritten while the upstream lexicon code is forwarded verbatim.
*/
/** A pipethrough `XrpcResponseError`: status rewritten, code forwarded. */
function payloadError(status: number, error: string, message: string) {
const body = {error, message}
return new XrpcResponseError(
@@ -92,10 +89,7 @@ describe('isExpectedSentryNetworkError', () => {
describe('dropExpectedNetworkErrors', () => {
test('drops automatic captures using the original exception', () => {
/*
* The serialized values do not carry the cause chain, so the hint is the
* only place the transport failure is visible.
*/
// the serialized values carry no cause chain, only the hint has the failure
const event = exceptionEvent(
'XrpcInternalError',
'Unable to fulfill XRPC request',