Преглед на файлове

Update present information error

marinofaggiana преди 5 години
родител
ревизия
e5844e1ba0
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      iOSClient/Utility/NCContentPresenter.swift

+ 6 - 1
iOSClient/Utility/NCContentPresenter.swift

@@ -67,7 +67,12 @@ class NCContentPresenter: NSObject {
             default:
                 var description = description
                 if description == nil { description = "" }
-                self.flatTop(title: NSLocalizedString(title, comment: ""), description: NSLocalizedString(description!, comment: ""), delay: delay, imageName: nil, type: type, name: "\(errorCode)")
+                if type == messageType.error {
+                    description = NSLocalizedString("_error_", comment: "") + ": \(errorCode), " + NSLocalizedString(description!, comment: "")
+                } else {
+                    description = NSLocalizedString(description!, comment: "")
+                }
+                self.flatTop(title: NSLocalizedString(title, comment: ""), description: description!, delay: delay, imageName: nil, type: type, name: "\(errorCode)")
             }
         }
     }