diff --git a/src/infra/unhandled-rejections.fatal-detection.test.ts b/src/infra/unhandled-rejections.fatal-detection.test.ts index 6ee3a604010..a868487bf5d 100644 --- a/src/infra/unhandled-rejections.fatal-detection.test.ts +++ b/src/infra/unhandled-rejections.fatal-detection.test.ts @@ -196,7 +196,7 @@ describe("installUnhandledRejectionHandler - fatal detection", () => { ); }); - it("does not exit on known Bonjour dependency failures", () => { + it("does not exit on known Bonjour advertiser failures", () => { const bonjourCases: unknown[] = [ new Error("CIAO ANNOUNCEMENT CANCELLED"), new Error("CIAO PROBING CANCELLED"), diff --git a/src/infra/unhandled-rejections.ts b/src/infra/unhandled-rejections.ts index c2c89702c80..6d9e569d190 100644 --- a/src/infra/unhandled-rejections.ts +++ b/src/infra/unhandled-rejections.ts @@ -341,7 +341,7 @@ export function isTransientSqliteError(err: unknown): boolean { return false; } -export function isKnownBonjourDependencyError(err: unknown): boolean { +export function isNonFatalBonjourAdvertiserError(err: unknown): boolean { if (!err) { return false; } @@ -379,7 +379,7 @@ export function isTransientUnhandledRejectionError(err: unknown): boolean { return ( isTransientNetworkError(err) || isTransientSqliteError(err) || - isKnownBonjourDependencyError(err) + isNonFatalBonjourAdvertiserError(err) ); }