The Free Software Media System - Server Backend & API
Fix catching authentication exception
crobiberoe77275632884
diff --git a/Jellyfin.Server/Middleware/ExceptionMiddleware.cs b/Jellyfin.Server/Middleware/ExceptionMiddleware.csindex 63effafc19..fb1ee3b2bb 100644--- a/Jellyfin.Server/Middleware/ExceptionMiddleware.cs+++ b/Jellyfin.Server/Middleware/ExceptionMiddleware.cs@@ -125,6 +125,7 @@ namespace Jellyfin.Server.Middlewareswitch (ex){case ArgumentException _: return StatusCodes.Status400BadRequest;+ case AuthenticationException _:case SecurityException _: return StatusCodes.Status401Unauthorized;case DirectoryNotFoundException _:case FileNotFoundException _: