From 556bd7c683d3199252bb4cbdadb93cf9a7f66262 Mon Sep 17 00:00:00 2001 From: Milen Pivchev Date: Mon, 22 Dec 2025 17:43:10 +0100 Subject: [PATCH] Remove code from content presenter when not debug Signed-off-by: Milen Pivchev --- iOSClient/Utility/NCContentPresenter.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iOSClient/Utility/NCContentPresenter.swift b/iOSClient/Utility/NCContentPresenter.swift index d20254a735..8f4c6a8a18 100644 --- a/iOSClient/Utility/NCContentPresenter.swift +++ b/iOSClient/Utility/NCContentPresenter.swift @@ -135,7 +135,11 @@ class NCContentPresenter: NSObject { } } if error.errorDescription.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { return } + #if DEBUG var description = NSLocalizedString(error.errorDescription, comment: "") + ", code: \(error.errorCode)" + #else + var description = NSLocalizedString(error.errorDescription, comment: "") + #endif description = description.replacingOccurrences(of: "\t", with: "\n") self.flatTop(title: NSLocalizedString(title, comment: ""), description: description + responseMessage, delay: delay, type: type, priority: priority, dropEnqueuedEntries: dropEnqueuedEntries) }