mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:00:44 +00:00
chore: clarify bonjour fatal guard naming
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user