Skip to content

Commit

Permalink
Add an error log if the namespace doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Jan 6, 2025
1 parent 52940ce commit 36c3147
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Core/Tracker/WebViewMessageHandlerV2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class WebViewMessageHandlerV2: NSObject, WKScriptMessageHandler {
for namespace in trackers {
if let tracker = Snowplow.tracker(namespace: namespace) {
_ = tracker.track(event)
} else {
logError(message: "WebView: Tracker with namespace \(namespace) not found.")
}
}
} else {
Expand Down

0 comments on commit 36c3147

Please sign in to comment.