Throw AuthenticationException instead of ArgumentNullException when a user does not exist
This commit is contained in:
parent
98044e7793
commit
9c7b3850f9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user