Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always log an error when static graph-based restore fails #5085

Merged
merged 2 commits into from
Mar 14, 2023

Conversation

jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Mar 10, 2023

Bug

Fixes: NuGet/Home#12372

Regression? Last working version:

Description

This ensures that an error is always logged when:

  • Arguments could not be parsed
  • An unhandled exception occurs
  • A non-zero exit code is returned but an error was not logged

I also brought back the refactoring of having RestoreTaskEx and GenerateRestoreGraphFileTask share the same base class since I had to revert it with other changes.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@jeffkl jeffkl self-assigned this Mar 10, 2023
@jeffkl jeffkl requested a review from a team as a code owner March 10, 2023 18:22
nkolev92
nkolev92 previously approved these changes Mar 10, 2023
@jeffkl jeffkl merged commit ddffda6 into dev Mar 14, 2023
@jeffkl jeffkl deleted the dev-jeffkl-static-graph-restore-always-log-error branch March 14, 2023 19:39
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.

Static graph-based restore should always log an error on failure
2 participants