浏览代码

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