Title: Suggestion: Add an $ErrorView option that displays concise, single-line error information and consider making that the default - default formatting of ErrorRecord · Issue #3647 · PowerShell/PowerShell · GitHub
Open Graph Title: Suggestion: Add an $ErrorView option that displays concise, single-line error information and consider making that the default - default formatting of ErrorRecord · Issue #3647 · PowerShell/PowerShell
X Title: Suggestion: Add an $ErrorView option that displays concise, single-line error information and consider making that the default - default formatting of ErrorRecord · Issue #3647 · PowerShell/PowerShell
Description: The currently supported $ErrorView values are: NormalView - the default, "noisy", multi-line display: > Get-Item /NoSuch Get-Item : Cannot find path '/NoSuch' because it does not exist. At line:1 char:1 + Get-Item /NoSuch + ~~~~~~~~~~~~~...
Open Graph Description: The currently supported $ErrorView values are: NormalView - the default, "noisy", multi-line display: > Get-Item /NoSuch Get-Item : Cannot find path '/NoSuch' because it does not exist. At line:1 c...
X Description: The currently supported $ErrorView values are: NormalView - the default, "noisy", multi-line display: > Get-Item /NoSuch Get-Item : Cannot find path '/NoSuch' because it does n...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3647
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: Add an $ErrorView option that displays concise, single-line error information and consider making that the default - default formatting of ErrorRecord","articleBody":"The currently supported `$ErrorView` values are:\r\n\r\n* `NormalView` - the default, \"noisy\", multi-line display:\r\n\r\n```powershell\r\n> Get-Item /NoSuch \r\nGet-Item : Cannot find path '/NoSuch' because it does not exist.\r\nAt line:1 char:1\r\n+ Get-Item /NoSuch\r\n+ ~~~~~~~~~~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (/NoSuch:String) [Get-Item], ItemNotFoundException\r\n + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand\r\n```\r\n\r\n* `CategoryView` - a terse, single-line display that doesn't always contain enough information:\r\n\r\n```powershell\r\n> $ErrorView = 'CategoryView'; 1 / 0\r\nNotSpecified: (:) [], RuntimeException\r\n```\r\n\r\nIt would be nice to have another option - e.g., `ConciseView` - that limits output to a single line that contains the immediately relevant information (digging deeper - if needed - is always possible via `$Error[0]`):\r\n\r\n```powershell\r\n> $ErrorView = 'ConciseView'; Get-Item /NoSuch # wishful thinking\r\nGet-Item : Cannot find path '/NoSuch' because it does not exist.\r\n```\r\n\r\nArguably, this kind of display is the most useful to end users when viewed in the console, so perhaps it should be the default.\r\n\r\nAs an aside: requiring the `$ErrorView` values to end in `*View` seems redundant; related: #3644 and #3645.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\nPowerShell Core v6.0.0-alpha (v6.0.0-alpha.18) on Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2017-04-25T23:00:39Z","url":"https://github.com/PowerShell/PowerShell/issues/3647"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:52a4d560-da36-8a8d-21b5-92869440c1ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E56:2ADC53:5D58E:845E6:6AFD48E3 |
| html-safe-nonce | fa4add3041f29d0a7013cb31c54690383c116b533c36dc0510e34bcead4cd50e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTU2OjJBREM1Mzo1RDU4RTo4NDVFNjo2QUZENDhFMyIsInZpc2l0b3JfaWQiOiI1ODczMDAxMjA3OTExMjM3ODU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5d0e1e371cd2cea76adf6305002e8f92092c94e52b60c95d35c99e0f87af463d |
| hovercard-subject-tag | issue:224296439 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/3647/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3672b0faa7c597eb7cf9bfce70ac5c489ec7b20d8dc8d86bfb12efcb9ec98250/PowerShell/PowerShell/issues/3647 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3672b0faa7c597eb7cf9bfce70ac5c489ec7b20d8dc8d86bfb12efcb9ec98250/PowerShell/PowerShell/issues/3647 |
| og:image:alt | The currently supported $ErrorView values are: NormalView - the default, "noisy", multi-line display: > Get-Item /NoSuch Get-Item : Cannot find path '/NoSuch' because it does not exist. At line:1 c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width