From bacde2a836aed796c285e4e32048f5759b11c3c3 Mon Sep 17 00:00:00 2001 From: Nikita Korobeinikov Date: Tue, 2 Jul 2024 15:45:44 +0400 Subject: [PATCH] #tech replace fatal error with debugPrint --- Sources/SurfCore/Weak/WeakReference.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SurfCore/Weak/WeakReference.swift b/Sources/SurfCore/Weak/WeakReference.swift index 3a187ef..6887c03 100644 --- a/Sources/SurfCore/Weak/WeakReference.swift +++ b/Sources/SurfCore/Weak/WeakReference.swift @@ -12,7 +12,7 @@ public struct WeakReference { 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