winget source update
returns success (0) when it fails
#2679
Labels
Command-Source
Issue related to WinGet Source
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Brief description of your issue
The CDN being (at least partially) broken (#2666) seems like an unhandled exception in
winget-cli
, as it returns success /%errorlevel
0, no?Following running in CMD as admin should not return success IMO.
Steps to reproduce
Change DNS to replicate CDN being down?
Expected behavior
If sources can't in fact be updated, it should return an error.
Actual behavior
Says updating sources failed, but exit code 0 = success.
Environment
The text was updated successfully, but these errors were encountered: