浏览代码

new view error

Marino Faggiana 7 年之前
父节点
当前提交
11677268ca
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      iOSClient/Networking/NCNetworkingSync.m

+ 4 - 2
iOSClient/Networking/NCNetworkingSync.m

@@ -739,8 +739,10 @@
         if (errorDescription == nil) errorDescription = NSLocalizedString(descriptionDefault, @"");
     }
     
-    if (errorDescription.length >= 200) {
-        errorDescription = [errorDescription substringToIndex:200];
+    errorDescription = [NSString stringWithFormat:@"%@ [%ld] - %@", NSLocalizedString(descriptionDefault, @""), errorCode, errorDescription];
+
+    if (errorDescription.length >= 250) {
+        errorDescription = [errorDescription substringToIndex:250];
         errorDescription = [errorDescription stringByAppendingString:@" ..."];
     }