Skip to content

Commit 2f206e3

Browse files
committed
Resolve Build: src/Playground/Playground.Blazor/Services/SimpleBffAuth.cs#L110
Logging in a catch clause should pass the caught exception as a parameter.
1 parent 4d097f1 commit 2f206e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Playground/Playground.Blazor/Services/SimpleBffAuth.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ public static void MapSimpleBffAuthEndpoints(this WebApplication app)
101101
errorMessage = detail.GetString() ?? errorMessage;
102102
}
103103
}
104-
catch
104+
catch (Exception parseEx)
105105
{
106106
// If parsing fails, use default message
107+
logger.LogDebug(parseEx, "Failed to parse error response, using default message");
107108
}
108109
}
109110

0 commit comments

Comments
 (0)