diff --git a/src/IdentityServer/Endpoints/DeviceAuthorizationEndpoint.cs b/src/IdentityServer/Endpoints/DeviceAuthorizationEndpoint.cs index f2df82545..1f883eaa7 100644 --- a/src/IdentityServer/Endpoints/DeviceAuthorizationEndpoint.cs +++ b/src/IdentityServer/Endpoints/DeviceAuthorizationEndpoint.cs @@ -122,7 +122,7 @@ private TokenErrorResult Error(string error, string errorDescription = null, Dic Custom = custom }; - _logger.LogError("Device authorization error: {error}:{errorDescriptions}", error, error ?? "-no message-"); + _logger.LogError("Device authorization error: {error}:{errorDescriptions}", error, errorDescription ?? "-no message-"); return new TokenErrorResult(response); }