mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-06 13:53:04 +02:00
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)
|
if (resolvedUser == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException(nameof(resolvedUser));
|
throw new AuthenticationException($"Specified user does not exist.");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
|
Loading…
Reference in a new issue