-
Notifications
You must be signed in to change notification settings - Fork 129
Update $ErrorView with simplified views for Error Messages #228
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
Conversation
Co-Authored-By: Steve Lee <slee@microsoft.com>
@vexx32 one correction, current implementation doesn't require input, if you just run I agree that the collision with One of the capabilities I'd like to have in the future is a way to register troubleshooters that will run with |
Initial (absolutely non-binding) thoughts on the naming:
So yeah, I'm basically a coin flip between |
@joeyaiello I believe Azure PowerShell has a default alias for |
Get-Error sounds like a great choice to me, it describes very accurately what is done by the cmdlet. I would argue against Resolve-Error so we don‘t close the door on any initiative that eventually really does resolve an error, i.e. via a public error db/wiki, AI, or whatnot 😀 |
On this point @joeyaiello, combined with your thinking about
Also, any thoughts on a collection of |
After some further considerations, I'm personally leaning towards |
I'm not in favor of the The current approach of another command is considering one user story for interactive use cases, but it doesn't consider non-interactive, logging scenarios. As it stands, I don't see how I can have a great experience in both without custom handling each use case. Do I need to always use MotivationAs an interactive user, I want concise, readable, colored output to easily scroll through and act upon. As an interactive user, I want to switch between concise and detailed output after the fact so that I can dig into harder to understand errors. As a non-interactive task, I want to log the detailed output to a file so that I can review when there is an issue. The error will not be available after the fact to switch between views. Alternate ProposalsAdd the detail from Allow contributing custom error views so that I can specify my own level of detail to bring in and make default. Add a new Use # Pass in error
$error[0] | Format-Error -View Detailed
# Default to $error[0] so you can just run the cmdlet
Format-Error -View Detailed`
# Default to $error[0] and Detailed view so you can just run
Format-Error All views should show $Error | Where FullyQualifiedErrorId -eq "ID1" |
As @vexx32 noted, I got slightly confused over the cmdlet name (expecting to test a new cmdlet and instead, executing a similarly named AZ function name. I think resolve is not a great verb. What are you actually resolving? I think of Resolve-DNSName and Resolve-Path which do resolve things. Displaying a fuller error message is not really, in my view, it not a resolution. Format- or even Get- seem more appropriate verbs. Whatever is decided, I suspect the AZ team should re-consider this alias. |
Get-Error works for me. Would that cmdlet have a -ErrorView parameter to say which view should be used in getting the Errors? |
For me, the intent of this cmdlet is to get as much info about an error as possible to figure out what the problem is. If there is a |
@PowerShell/powershell-committee agree that we want to go with We also agree on the Azure PS collision, I wasn't aware they were sitting on that alias. We'll bring it up with them next time we sync, I suspect most of the |
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.
Jason wants to make a couple changes, but I'm good with this, and I know that @JamesWTruher, @daxian-dbw, and @SteveL-MSFT are there too
We only have me, @daxian-dbw, and @SteveL-MSFT for @PowerShell/powershell-committee today, but we're all good and ready to accept/merge this once we have quorum. |
No description provided.