Kaynağa Gözat

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

Felix Paul Kühne 12 yıl önce
ebeveyn
işleme
4f14647fe8
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  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;