Browse Source

new view error

Marino Faggiana 7 years ago
parent
commit
11677268ca
1 changed files with 4 additions and 2 deletions
  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 == 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:@" ..."];
         errorDescription = [errorDescription stringByAppendingString:@" ..."];
     }
     }