mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-28 13:01:57 +00:00
Throw AuthenticationException instead of ArgumentNullException when a user does not exist
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user