The Free Software Media System - Server Backend & API
Throw AuthenticationException instead of ArgumentNullException when a user does not exist
Mark Monteiro9c7b3850f986
diff --git a/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs b/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.csindex ab036eca7a..52c8facc3e 100644--- a/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs+++ b/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;