豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

allow for and display extra message with private_source_bad_response#13364

Merged
brettfo merged 1 commit intomainfrom
dev/brettfo/nuget-error-extra-info
Oct 22, 2025
Merged

allow for and display extra message with private_source_bad_response#13364
brettfo merged 1 commit intomainfrom
dev/brettfo/nuget-error-extra-info

Conversation

@brettfo
Copy link
Copy Markdown
Contributor

@brettfo brettfo commented Oct 22, 2025

There are many reasons a response to a NuGet query could eventually get turned into private_source_bad_response but that information isn't conveyed to the log which makes determining what actually went wrong very difficult.

This PR adds a Message property to that object. The official API doesn't allow for this extra field so it has to be excluded from the official error serialization and reporting but it is added to the log so a manual review can report the exact error that occurred.

JobErrorBase.cs is where the extra info is elevated to this Message property and MessageReportTests.cs shows that it will appear in the log. The rest of the changes are to verify this Message property is appropriately populated and/or aren't relevant for the given test but need to be present to make it build.

@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Oct 22, 2025
@brettfo brettfo marked this pull request as ready for review October 22, 2025 19:36
@brettfo brettfo requested a review from a team as a code owner October 22, 2025 19:36
@brettfo brettfo force-pushed the dev/brettfo/nuget-error-extra-info branch from 1e658eb to e22cb77 Compare October 22, 2025 19:52
@brettfo brettfo merged commit 602874f into main Oct 22, 2025
91 checks passed
@brettfo brettfo deleted the dev/brettfo/nuget-error-extra-info branch October 22, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L: dotnet:nuget NuGet packages via nuget or dotnet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants