-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Make error message consistent when invalid script is passed to -File, better error when passed ambiguous arg #4573
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -252,7 +252,7 @@ EXAMPLES | |
| <value>Processing -File '{0}' failed because the file does not have a '.ps1' extension. Specify a valid Windows PowerShell script file name, and then try again.</value> | ||
| </data> | ||
| <data name="ArgumentFileDoesNotExist" xml:space="preserve"> | ||
| <value>The argument '{0}' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter.</value> | ||
| <value>The argument '{0}' is not recognized as the name of a script file. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.</value> | ||
| </data> | ||
| <data name="BadArgsValue" xml:space="preserve"> | ||
| <value>Cannot process the command because the value specified with -EncodedArguments is not properly encoded. The value must be Base64 encoded.</value> | ||
|
|
@@ -269,4 +269,7 @@ EXAMPLES | |
| <data name="MissingConfigurationNameArgument" xml:space="preserve"> | ||
| <value>Cannot process the command because -Configuration requires an argument that is a remote endpoint configuration name. Specify this argument and try again.</value> | ||
| </data> | ||
| <data name="InvalidArgument" xml:space="preserve"> | ||
| <value>Invalid argument '{0}', did you mean:</value> | ||
|
||
| </data> | ||
| </root> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if !CORECLRis no longer relevant. Should we remove the parameters at all?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fixing that as part of enabling ApartmentState PR and not part of this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closed.