Romanitho / Winget-AutoUpdate

WAU daily updates apps as system and notify connected users. (Allowlist and Blocklist support)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request]: All Error Codes

unclesam87 opened this issue · comments

The request

Hey,
i have an rather unusual request or need an hint:
As i am writing an analyzer for the log files from all our winget auto update instances i would need an list of possible error codes and their meaning - so i was clicking trough our already existing logs files (sadly we run this script just in an very small group right now for testing so not that many examples) and wasn't finding that many error codes to get my self a good picture of how they are structured
so i was wondering: is there already an list? are the "error codes" the same as in winget (like this https://github.com/microsoft/winget-cli/blob/master/doc/windows/package-manager/winget/returnCodes.md) - sometimes they were translated to german so i was wondering if they coming out of winget

every little hint would be appreciated
thanks

Is your feature request related to a problem?

No response

Additional information

No response

Hey Sam,

the error codes are listed in winget source code here and here

Localized names come from winget itself. WAU does not translate texts.
If successful upgrade/update cannot be confirmed, then it reports that fact using

Write-ToLog "$($app.Name) update failed." "Red"

And as a result, we may observe hiccups such as Wenn ist das Nunstück git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput! update failed.

From what I've seen the list of errorcodes in winget project is still growing.
If you've seen this long list, you'll probably agree that maintaining and updating a parallel list in PowerShell scripts would be extremely tedious.

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.