This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Improve error messages when calling au_GetLatest #204
Labels
Comments
This should work like so unless you changed ErrorAction. Throwing inside au_GetLatest shouldn't bring URL syntax is invalid. What happens when you run update.ps1 ? |
Good idea. It behaves differently when using
And
|
DennisGaida
added a commit
to DennisGaida/au
that referenced
this issue
Jan 27, 2020
As described in majkinetor#204 we need to know what parameter was responsible for the invalid URL message.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Consider the following
global:au_GetLatest
:When executing this within the update-process (update_all.ps1 / test_all.ps1) the exception for the nonexisting URL is not shown, secondly the error reported by validation is simply "URL syntax is invalid: (7,55s)". I don't know what URL is meant.
Whilst the error message is factually correct, I really didn't know why I was getting the error (see my commit correcting the error here: DennisGaida/chocolatey-packages@3e3334a). I would love if AU did parameter validation before actually doing anything and when doing that, also tell me what parameter is wrong.
The text was updated successfully, but these errors were encountered: