浏览代码

Add user not found message

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu 11 月之前
父节点
当前提交
4f2b1736ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Jellyfin.Server.Implementations/Devices/DeviceManager.cs

+ 1 - 1
Jellyfin.Server.Implementations/Devices/DeviceManager.cs

@@ -241,7 +241,7 @@ namespace Jellyfin.Server.Implementations.Devices
             var user = _userManager.GetUserById(authInfo.UserId);
             var user = _userManager.GetUserById(authInfo.UserId);
             if (user is null)
             if (user is null)
             {
             {
-                throw new ResourceNotFoundException();
+                throw new ResourceNotFoundException("User with UserId " + authInfo.UserId + " not found");
             }
             }
 
 
             return new DeviceInfo
             return new DeviceInfo