Skip to content

Commit

Permalink
Merge pull request #13 from surfstudio/#tech/remove-fatalError-from-weak
Browse files Browse the repository at this point in the history
#tech replace fatal error with debugPrint
  • Loading branch information
NullIsOne authored Jul 2, 2024
2 parents 6971e0d + bacde2a commit fe6b327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SurfCore/Weak/WeakReference.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct WeakReference<Input: AnyObject> {
let input = WeakLocator.shared.provide(Input.self)?.unit
#if DEBUG
if input == nil {
fatalError("⚠️ Weak for \(Input.self) not found in WeakLocator")
debugPrint("⚠️ Weak for \(Input.self) not found in WeakLocator")
}
#endif
return input
Expand Down

0 comments on commit fe6b327

Please sign in to comment.