فهرست منبع

Throw AuthenticationException instead of ArgumentNullException when a user does not exist

Mark Monteiro 5 سال پیش
والد
کامیت
9c7b3850f9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs

+ 1 - 1
Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs

@@ -47,7 +47,7 @@ namespace Emby.Server.Implementations.Library
         {
             if (resolvedUser == null)
             {
-                throw new ArgumentNullException(nameof(resolvedUser));
+                throw new AuthenticationException($"Specified user does not exist.");
             }
 
             bool success = false;