Преглед изворни кода

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);
             if (user is null)
             {
-                throw new ResourceNotFoundException();
+                throw new ResourceNotFoundException("User with UserId " + authInfo.UserId + " not found");
             }
 
             return new DeviceInfo