diff options
| author | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-04-13 14:55:24 -0400 |
|---|---|---|
| committer | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-04-13 14:55:24 -0400 |
| commit | 9c7b3850f98633570cfb426e020153363921ce40 (patch) | |
| tree | 37f4b2fb440bd9a6ede5a779c31e1887ae11248d /Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs | |
| parent | 98044e77935afdd4ff00a65d43b17d285fea82c7 (diff) | |
Throw AuthenticationException instead of ArgumentNullException when a user does not exist
Diffstat (limited to 'Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs b/Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs index ab036eca7..52c8facc3 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; |
