From ead0993095530dc3863449d95243f026968c9324 Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Fri, 29 Nov 2024 20:08:47 -0600 Subject: [PATCH] Fix error log when device authorization endpoint fails --- src/IdentityServer/Endpoints/DeviceAuthorizationEndpoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }