Explorar el Código

http uploader: don't print errors if there is none

Felix Paul Kühne hace 12 años
padre
commit
4f14647fe8
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      AspenProject/VLCHTTPUploaderController.m

+ 3 - 1
AspenProject/VLCHTTPUploaderController.m

@@ -112,7 +112,9 @@ static const int httpLogLevel = HTTP_LOG_LEVEL_VERBOSE; // | HTTP_LOG_FLAG_TRACE
                 if(![self.httpServer start:&error])
                     return true;
             }
-            DDLogError(@"Error starting HTTP Server: %@", error);
+
+            if (error.code != 0)
+                DDLogError(@"Error starting HTTP Server: %@", error.localizedDescription);
             return false;
         }
         return true;