소스 검색

Made changes to message and exception class

BaronGreenback 5 년 전
부모
커밋
ba2134de13
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      Jellyfin.Server/Program.cs

+ 4 - 4
Jellyfin.Server/Program.cs

@@ -290,9 +290,9 @@ namespace Jellyfin.Server
                                         listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
                                     });
                                 }
-                                catch (Exception ex)
+                                catch (InvalidOperationException ex)
                                 {
-                                    _logger.LogError(ex, "Error whilst listing to https - Is a development certificate installed?");
+                                    _logger.LogError(ex, "Failed to listen to HTTPS using the ASP.NET Core HTTPS development certificate. Please ensure it has been installed and set as trusted.");
                                 }
                             }
                         }
@@ -320,9 +320,9 @@ namespace Jellyfin.Server
                                     listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
                                 });
                             }
-                            catch (Exception ex)
+                            catch (InvalidOperationException ex)
                             {
-                                _logger.LogError(ex, "Error whilst listing to https - Is a development certificate installed?");
+                                _logger.LogError(ex, "Failed to listen to HTTPS using the ASP.NET Core HTTPS development certificate. Please ensure it has been installed and set as trusted.");
                             }
                         }
                     }