aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Users/UserManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-06-24 20:36:58 -0400
committerPatrick Barron <barronpm@gmail.com>2020-06-24 20:36:58 -0400
commit2967dd6afd158fc278697fa593852de45e99b84a (patch)
treea177dfc8e080a7e53999f7d067b84331669b04ac /Jellyfin.Server.Implementations/Users/UserManager.cs
parent9a01cd8590ffcae8ce561e6f733bf59fe54932fa (diff)
Change to ResourceNotFoundException
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/UserManager.cs')
-rw-r--r--Jellyfin.Server.Implementations/Users/UserManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs
index d86b25f81..ae5c311bf 100644
--- a/Jellyfin.Server.Implementations/Users/UserManager.cs
+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs
@@ -12,6 +12,7 @@ using Jellyfin.Data.Entities;
using Jellyfin.Data.Enums;
using MediaBrowser.Common;
using MediaBrowser.Common.Cryptography;
+using MediaBrowser.Common.Extensions;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Authentication;
using MediaBrowser.Controller.Drawing;
@@ -198,7 +199,7 @@ namespace Jellyfin.Server.Implementations.Users
var user = dbContext.Users.Find(userId);
if (user == null)
{
- throw new ArgumentNullException(nameof(userId));
+ throw new ResourceNotFoundException(nameof(userId));
}
if (dbContext.Users.Find(user.Id) == null)