Add user not found message

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-07-01 22:44:47 +08:00
parent c05049e54e
commit 4f2b1736ab

View File

@ -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