From 8b2d075b2276ce16b8fa13dd030bedb80793d0a1 Mon Sep 17 00:00:00 2001 From: Hugo Delaunay Date: Tue, 28 Nov 2023 14:08:05 +0100 Subject: [PATCH] fix(darwin): Fixed discovery errors not being detailed on macOS. --- .../darwin/Classes/Discovery/BonsoirServiceDiscovery.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bonsoir_darwin/darwin/Classes/Discovery/BonsoirServiceDiscovery.swift b/packages/bonsoir_darwin/darwin/Classes/Discovery/BonsoirServiceDiscovery.swift index ff37dba1..101fa9da 100644 --- a/packages/bonsoir_darwin/darwin/Classes/Discovery/BonsoirServiceDiscovery.swift +++ b/packages/bonsoir_darwin/darwin/Classes/Discovery/BonsoirServiceDiscovery.swift @@ -42,7 +42,7 @@ class BonsoirServiceDiscovery: BonsoirAction { onSuccess("discoveryStarted", "Bonsoir discovery started : \(type)") case .failed(let error): let details: Any? - if #available(iOS 16.4, *) { + if #available(iOS 16.4, macOS 13.3, *) { details = error.errorCode } else { details = error.debugDescription