Title: No Error Displayed When $ErrorView Set to ConciseView · Issue #12191 · PowerShell/PowerShell · GitHub
Open Graph Title: No Error Displayed When $ErrorView Set to ConciseView · Issue #12191 · PowerShell/PowerShell
X Title: No Error Displayed When $ErrorView Set to ConciseView · Issue #12191 · PowerShell/PowerShell
Description: In PS7 with $ErrorView set to ConciseView a custom function in a script module does not display an error, but an error is recorded in $Error. Changing to NormalView fixes this issue. I have tested the same command in VS Code's Integrated...
Open Graph Description: In PS7 with $ErrorView set to ConciseView a custom function in a script module does not display an error, but an error is recorded in $Error. Changing to NormalView fixes this issue. I have tested ...
X Description: In PS7 with $ErrorView set to ConciseView a custom function in a script module does not display an error, but an error is recorded in $Error. Changing to NormalView fixes this issue. I have tested ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/12191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No Error Displayed When $ErrorView Set to ConciseView","articleBody":"In PS7 with `$ErrorView` set to `ConciseView` a custom function in a script module does not display an error, but an error is recorded in `$Error`. Changing to `NormalView` fixes this issue. I have tested the same command in VS Code's Integrated Terminal running PS7 with ConciseView and an error is output as expected. I can't explain why this works differently based on the host.\r\n\r\n\r\n\r\nThe error itself is coming from `Invoke-RestMethod` which is reaching out to an Office 365 REST API. I don't see the same behavior with built in commands.\r\n\r\n\r\n```\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0\r\nPSEdition Core\r\nGitCommitId 7.0.0\r\nOS Microsoft Windows 10.0.18363\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n```\r\n","author":{"url":"https://github.com/mattmcnabb","@type":"Person","name":"mattmcnabb"},"datePublished":"2020-03-24T00:05:49Z","url":"https://github.com/PowerShell/PowerShell/issues/12191"}
| 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:dfa26345-ed77-9910-48b3-3d2e721588a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A38E:1BA848:11B014:17F08B:6AFD4C83 |
| html-safe-nonce | 192a8c2f2c182c59434a8a6a76a5a5fa649270aa0ff358f031f87f86c9dde25e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzhFOjFCQTg0ODoxMUIwMTQ6MTdGMDhCOjZBRkQ0QzgzIiwidmlzaXRvcl9pZCI6IjYxMzQxNTgyODM0ODI0MTgzMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0ed881a119ba0cb5c8a9ea243ce92ee1f5e94785ee9c41b36a8c1b7bef9f126e |
| hovercard-subject-tag | issue:586596474 |
| 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/12191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a5c2513e03d4e9ca31885def6a8c3ec008431c55afa82e207bab65c1218610e/PowerShell/PowerShell/issues/12191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a5c2513e03d4e9ca31885def6a8c3ec008431c55afa82e207bab65c1218610e/PowerShell/PowerShell/issues/12191 |
| og:image:alt | In PS7 with $ErrorView set to ConciseView a custom function in a script module does not display an error, but an error is recorded in $Error. Changing to NormalView fixes this issue. I have tested ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattmcnabb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width