Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TelemetryManager] Replace fatalError With assertionFailure #146

Merged
merged 1 commit into from
Mar 19, 2024
Merged

[TelemetryManager] Replace fatalError With assertionFailure #146

merged 1 commit into from
Mar 19, 2024

Conversation

nickkohrn
Copy link
Contributor

Replace fatalError(_:file:line:) with assertionFailure(_:file:line:) to catch uninitialized TelemetryManager.shared without crashing in release builds.

See issue #112 for context.

Replace fatalError with assertionFailure to catch uninitialized TelemetryManager while not causing a crash in release builds
@winsmith
Copy link
Contributor

Fantastic! Thank you so much!

@winsmith winsmith merged commit ab7455c into TelemetryDeck:main Mar 19, 2024
5 checks passed
@nickkohrn nickkohrn deleted the 112-uninitialized-access-fatal-error branch March 19, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants