Skip to content

Include underlying error details in NU1900 - #7774

Merged
Nigusu-Allehu merged 4 commits into
devfrom
dev-nyenework-bubble-up-error
Oct 21, 2026
Merged

Nigusu-Allehu merged 4 commits into
devfrom
dev-nyenework-bubble-up-error

Conversation

@Nigusu-Allehu

@Nigusu-Allehu Nigusu-Allehu commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#15102

Description

Includes the underlying exception details in NU1900 warnings

Adds regression coverage for nested exceptions.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.

@Nigusu-Allehu
Nigusu-Allehu marked this pull request as ready for review October 14, 2026 23:18
@Nigusu-Allehu
Nigusu-Allehu requested a review from a team as a code owner October 14, 2026 23:18
@Nigusu-Allehu Nigusu-Allehu self-assigned this Oct 14, 2026
@Nigusu-Allehu

Copy link
Copy Markdown
Member Author

@copilot rebase to latest dev

Copilot AI commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

@copilot rebase to latest dev

Merged the latest dev into this branch in c4ab53d. I merged rather than rebased because publishing a rebase would require a force-push.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change reuses established exception formatting and adds targeted regression coverage, with no blocking issues identified; tests were not run.

No open issues 🎉

Review effort: Balanced

@Nigusu-Allehu

Copy link
Copy Markdown
Member Author

@copilot rebase to latest dev branch

Copilot AI commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@copilot rebase to latest dev branch

Merged the latest dev into this branch in 888d67d. I merged rather than rebased because publishing a rebase would require a force-push.

@Nigusu-Allehu
Nigusu-Allehu merged commit 6234549 into dev Oct 21, 2026
17 of 18 checks passed
@Nigusu-Allehu
Nigusu-Allehu deleted the dev-nyenework-bubble-up-error branch October 21, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nuget restore causing NU1900 doesn't show underlying cause

6 participants