mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-25 02:11:45 +00:00
Fix catching authentication exception
This commit is contained in:
parent
cd40688584
commit
e772756328
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ namespace Jellyfin.Server.Middleware
|
|||
switch (ex)
|
||||
{
|
||||
case ArgumentException _: return StatusCodes.Status400BadRequest;
|
||||
case AuthenticationException _:
|
||||
case SecurityException _: return StatusCodes.Status401Unauthorized;
|
||||
case DirectoryNotFoundException _:
|
||||
case FileNotFoundException _:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue