From 0472b6197ab2a62f39ce9e685b54299f4a921742 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 26 Apr 2026 23:27:35 +0100 Subject: [PATCH] chore: clarify bonjour fatal guard naming --- src/infra/unhandled-rejections.fatal-detection.test.ts | 2 +- src/infra/unhandled-rejections.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) ); }