Throw AuthenticationException instead of ArgumentNullException when a user does not exist

This commit is contained in:
Mark Monteiro 2020-04-13 14:55:24 -04:00
parent 98044e7793
commit 9c7b3850f9

View file

@ -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;