Repository navigation
Include underlying error details in NU1900 - #7774
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The focused change uses an established formatter with matching regression coverage and no identified blocking issues.
0 open findings
What changed in this PR
Improves NuGet audit diagnostics by including underlying exception details in NU1900 warnings.
Changes:
- Uses the existing exception formatter to include nested error messages.
- Adds nested-exception regression coverage and tightens existing warning assertions.
| File | Description |
|---|---|
| test/NuGet.Core.Tests/NuGet.Commands.Test/RestoreCommandTests/Utility/AuditUtilityTests.cs | Verifies exact warning text and nested exception details. |
| src/NuGet.Core/NuGet.Commands/RestoreCommand/Utility/AuditUtility.cs | Formats NU1900 warnings with underlying error details. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@copilot rebase to latest dev |
…p-error Co-authored-by: Nigusu-Allehu <[email protected]>
Merged the latest |
Co-authored-by: Copilot App <[email protected]>
|
@copilot rebase to latest dev branch |
…p-error Co-authored-by: Nigusu-Allehu <[email protected]>
Merged the latest |
Bug
Fixes: NuGet/Home#15102
Description
Includes the underlying exception details in NU1900 warnings
Adds regression coverage for nested exceptions.
PR Checklist