-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use do catch, more details in error log
- Loading branch information
Maddie Beyl
committed
Apr 28, 2022
1 parent
a11742a
commit 6a7697b
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ enum AttributionStrings { | |
case attribute_set_locally(attribute: String) | ||
case missing_advertiser_identifiers | ||
case adservices_not_supported | ||
case adservices_token_fetch_failed | ||
case adservices_token_fetch_failed(error: Error?) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
NachoSoto
Contributor
|
||
|
||
} | ||
|
||
|
@@ -120,8 +120,8 @@ extension AttributionStrings: CustomStringConvertible { | |
return "Tried to fetch AdServices attribution token on device without " + | ||
"AdServices support." | ||
|
||
case .adservices_token_fetch_failed: | ||
return "Error fetching AdServices attribution token." | ||
case .adservices_token_fetch_failed(let error): | ||
return "Fetching AdServices attribution token failed with error: \(error?.localizedDescription ?? "")" | ||
} | ||
} | ||
|
||
|
Nit: this seems unnecessary, maybe just
return try AAAttribution.attributionToken()
?