Parcourir la source

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

Felix Paul Kühne il y a 12 ans
Parent
commit
4f14647fe8
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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;