Skip to content

Commit

Permalink
fix(darwin): Fixed discovery errors not being detailed on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed Nov 28, 2023
1 parent 7418155 commit 8b2d075
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b2d075

Please sign in to comment.