Title: Get-Error situationally places other InnerException information before the Message output line · Issue #11121 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-Error situationally places other InnerException information before the Message output line · Issue #11121 · PowerShell/PowerShell
X Title: Get-Error situationally places other InnerException information before the Message output line · Issue #11121 · PowerShell/PowerShell
Description: Update: The issue is not one of missing InnerException information, but one of situationally different ordering. Steps to reproduce # OK: The "InnerException :" line is followed by a "Message: " line for the inner exception. try { 1/0 } ...
Open Graph Description: Update: The issue is not one of missing InnerException information, but one of situationally different ordering. Steps to reproduce # OK: The "InnerException :" line is followed by a "Message: " li...
X Description: Update: The issue is not one of missing InnerException information, but one of situationally different ordering. Steps to reproduce # OK: The "InnerException :" line is followed by a &quo...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11121
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-Error situationally places other InnerException information before the Message output line","articleBody":"_Update_: The issue is not one of _missing_ InnerException information, but one of situationally different _ordering_.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n# OK: The \"InnerException :\" line is followed by a \"Message: \" line for the inner exception.\r\ntry { 1/0 } catch {}; (Get-Error | Out-String -Stream) -replace '\\e[^m]*m' | Select-String -context 0,1 '\\bInnerException\\b' | % { $_.Context.PostContext } | Should -Match 'Attempted to divide by zero'\r\n\r\n# FAILS: The \"InnerException :\" line is followed by no fields describing the inner exception.\r\ntry { [int]::parse('foo') } catch {}; (Get-Error | Out-String -Stream) -replace '\\e[^m]*m' | Select-String -context 0,1 '\\bInnerException\\b' | % { $_.Context.PostContext } | Should -Match 'not in a correct format'\r\n```\r\n\r\n# Expected behavior\r\n\r\nBoth tests should succeed.\r\n\r\n# Actual behavior\r\n\r\nThe 2nd test fails:\r\n\r\n```none\r\nExpected regular expression 'not in a correct format' to match ' TargetSite : ', but it did not match.\r\n```\r\n\r\nThat is, the `InnerException: ` line wasn't followed by the `Message: ` line.\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nPowerShell Core 7.0.0-preview.5\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-11-19T18:35:43Z","url":"https://github.com/PowerShell/PowerShell/issues/11121"}
| 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:9e987be5-d111-d7c4-7862-237c3316e8d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9974:9FBED:1F993F:2A6A52:6AFD447D |
| html-safe-nonce | 57a309920691d8da9d69042ac32cf926c756be31279332bc9c734e19ccd4cb4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTc0OjlGQkVEOjFGOTkzRjoyQTZBNTI6NkFGRDQ0N0QiLCJ2aXNpdG9yX2lkIjoiMjE4MDU0MjczODkyMTc2ODA2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e65c4e3dcba0eca69a6c95aa5f7ff06fcfdb48af747ede4852a645be66f5d24 |
| hovercard-subject-tag | issue:525188600 |
| 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/11121/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0224a1a9aeb278dc70e4e9d75435313b11d67d32ad1a10501e57b59c8615f38/PowerShell/PowerShell/issues/11121 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0224a1a9aeb278dc70e4e9d75435313b11d67d32ad1a10501e57b59c8615f38/PowerShell/PowerShell/issues/11121 |
| og:image:alt | Update: The issue is not one of missing InnerException information, but one of situationally different ordering. Steps to reproduce # OK: The "InnerException :" line is followed by a "Message: " li... |
| 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