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) }