René's URL Explorer Experiment


Title: Fix ErrorActionPreference not being respected from throw site when reset in finally block by rjmholt · Pull Request #15833 · PowerShell/PowerShell · GitHub

Open Graph Title: Fix ErrorActionPreference not being respected from throw site when reset in finally block by rjmholt · Pull Request #15833 · PowerShell/PowerShell

X Title: Fix ErrorActionPreference not being respected from throw site when reset in finally block by rjmholt · Pull Request #15833 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: PR Summary Fixes #15726. When an error is thrown due to $ErrorActionPreference = 'Stop', we now mark it at the first opportunity to prevent having the action preference re-interpreted at a ...

X Description: PR Summary Fixes #15726. When an error is thrown due to $ErrorActionPreference = 'Stop', we now mark it at the first opportunity to prevent having the action preference re-interpret...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/15833

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5d05cd5c-03f1-603f-66a1-d558de4d0b76
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA5B0:19F937:280B07E:32F5DA2:6991ACE9
html-safe-nonce9b2bcc5b32cfa4fd3840219e5c9863689e7a0e2340cc098ef97b8d77d1ad6b3e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUIwOjE5RjkzNzoyODBCMDdFOjMyRjVEQTI6Njk5MUFDRTkiLCJ2aXNpdG9yX2lkIjoiNTk0NzM4NzgxMjM2NjEwMTczNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaceb76d8adb18bf5ad03f09b307616c0f83cd942534e71d210e2b6312bc5d473aa
hovercard-subject-tagpull_request:698073519
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/15833/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/457231b080fd9565e63d3e2c16590015872325e418dff974ce4703a5c61ad636/PowerShell/PowerShell/pull/15833
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/457231b080fd9565e63d3e2c16590015872325e418dff974ce4703a5c61ad636/PowerShell/PowerShell/pull/15833
og:image:altPR Summary Fixes #15726. When an error is thrown due to $ErrorActionPreference = 'Stop', we now mark it at the first opportunity to prevent having the action preference re-interpreted at a ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerjmholt
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/15833#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F15833
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F15833
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/15833
Reloadhttps://github.com/PowerShell/PowerShell/pull/15833
Reloadhttps://github.com/PowerShell/PowerShell/pull/15833
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.2k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 51.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 215 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects 7 https://github.com/PowerShell/PowerShell/projects
Security 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
rjmholthttps://github.com/rjmholt
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
rjmholt:fix-eap-nonstophttps://github.com/rjmholt/PowerShell/tree/fix-eap-nonstop
Conversationhttps://github.com/PowerShell/PowerShell/pull/15833
Commits6 (6)https://github.com/PowerShell/PowerShell/pull/15833/commits
Checkshttps://github.com/PowerShell/PowerShell/pull/15833/checks
Files changedhttps://github.com/PowerShell/PowerShell/pull/15833/files
Fix ErrorActionPreference not being respected from throw site when reset in finally blockhttps://github.com/PowerShell/PowerShell/pull/15833#top
rjmholthttps://github.com/rjmholt
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
rjmholt:fix-eap-nonstophttps://github.com/rjmholt/PowerShell/tree/fix-eap-nonstop
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
Jul 27, 2021https://github.com/PowerShell/PowerShell/pull/15833#issue-954132441
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
#15726https://github.com/PowerShell/PowerShell/issues/15726
PR has a meaningful titlehttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Summarized changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright headerhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Work in Progresshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress
Breaking changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes
Experimental feature(s) neededhttps://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md
Documentation neededhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure you've added a new test if existing tests do not effectively test the code changedhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting
PowerShell Editor Serviceshttps://github.com/PowerShell/PowerShellEditorServices
PowerShell extensionhttps://github.com/PowerShell/vscode-powershell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
EditorSyntaxhttps://github.com/PowerShell/EditorSyntax
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
WG-Engine https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3AWG-Engine
Breaking-Change https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ABreaking-Change
Jul 27, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5075866721
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
JamesWTruherhttps://github.com/JamesWTruher
SteveL-MSFThttps://github.com/SteveL-MSFT
daxian-dbwhttps://github.com/daxian-dbw
July 27, 2021 18:04https://github.com/PowerShell/PowerShell/pull/15833#event-5075866745
anmenagahttps://github.com/anmenaga
Jul 27, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5075867075
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
adityapatwardhanhttps://github.com/adityapatwardhan
anmenagahttps://github.com/anmenaga
Jul 27, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5075876653
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Jul 28, 2021 https://github.com/PowerShell/PowerShell/pull/15833#pullrequestreview-717292329
View reviewed changes https://github.com/PowerShell/PowerShell/pull/15833/files
test/powershell/Language/Scripting/ActionPreference.Tests.ps1https://github.com/PowerShell/PowerShell/pull/15833/files#diff-48d941810cc76608675be5d44b4e40c1e9b92fee4e05b33ac0dfc44db177a0eb
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
Review - Needed https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Review%20-%20Needed%22
Aug 5, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5114742866
https://github.com/ghost
ghosthttps://github.com/ghost
Aug 5, 2021https://github.com/PowerShell/PowerShell/pull/15833#issuecomment-893103960
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
rjmholthttps://github.com/rjmholt
August 9, 2021 15:27https://github.com/PowerShell/PowerShell/pull/15833#commits-pushed-185e38a
https://github.com/rjmholt
Make semantics changehttps://github.com/PowerShell/PowerShell/pull/15833/commits/185e38a741cdc152951f7da73826cb3fe9e6feda
185e38ahttps://github.com/PowerShell/PowerShell/pull/15833/commits/185e38a741cdc152951f7da73826cb3fe9e6feda
https://github.com/rjmholt
Improve stylehttps://github.com/PowerShell/PowerShell/pull/15833/commits/7fdfc146c188f8701094e5aef3d931db9f08b1a8
7fdfc14https://github.com/PowerShell/PowerShell/pull/15833/commits/7fdfc146c188f8701094e5aef3d931db9f08b1a8
https://github.com/rjmholt
Add testshttps://github.com/PowerShell/PowerShell/pull/15833/commits/034b732bf8c514f2fb8abaae8101ded9be3c6cce
034b732https://github.com/PowerShell/PowerShell/pull/15833/commits/034b732bf8c514f2fb8abaae8101ded9be3c6cce
https://github.com/rjmholt
Fix testhttps://github.com/PowerShell/PowerShell/pull/15833/commits/3e7a8e4f888f4e7685ed54b90b2a309d96cb804c
3e7a8e4https://github.com/PowerShell/PowerShell/pull/15833/commits/3e7a8e4f888f4e7685ed54b90b2a309d96cb804c
https://github.com/rjmholt
Add further testinghttps://github.com/PowerShell/PowerShell/pull/15833/commits/fe52ad89677453695e1e8bb33b659d8fbf274837
fe52ad8https://github.com/PowerShell/PowerShell/pull/15833/commits/fe52ad89677453695e1e8bb33b659d8fbf274837
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
force-pushedhttps://github.com/PowerShell/PowerShell/compare/6407f947a2d48f555ed85a216541af10e1027a62..fe52ad89677453695e1e8bb33b659d8fbf274837
6407f94https://github.com/PowerShell/PowerShell/commit/6407f947a2d48f555ed85a216541af10e1027a62
fe52ad8https://github.com/PowerShell/PowerShell/commit/fe52ad89677453695e1e8bb33b659d8fbf274837
Compare https://github.com/PowerShell/PowerShell/compare/6407f947a2d48f555ed85a216541af10e1027a62..fe52ad89677453695e1e8bb33b659d8fbf274837
August 9, 2021 22:27https://github.com/PowerShell/PowerShell/pull/15833#event-5132363035
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Aug 10, 2021 https://github.com/PowerShell/PowerShell/pull/15833#pullrequestreview-726131957
View reviewed changes https://github.com/PowerShell/PowerShell/pull/15833/files/fe52ad89677453695e1e8bb33b659d8fbf274837
test/powershell/Language/Scripting/ActionPreference.Tests.ps1https://github.com/PowerShell/PowerShell/pull/15833/files/fe52ad89677453695e1e8bb33b659d8fbf274837#diff-48d941810cc76608675be5d44b4e40c1e9b92fee4e05b33ac0dfc44db177a0eb
iSazonovhttps://github.com/iSazonov
Aug 10, 2021https://github.com/PowerShell/PowerShell/pull/15833#discussion_r685790255
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
CL-BreakingChange https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-BreakingChange
Aug 10, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5133988385
https://github.com/rjmholt
Expand testshttps://github.com/PowerShell/PowerShell/pull/15833/commits/b94f1af06a67ada23a290045bc4e1a6be7e6b11f
b94f1afhttps://github.com/PowerShell/PowerShell/pull/15833/commits/b94f1af06a67ada23a290045bc4e1a6be7e6b11f
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
Aug 10, 2021https://github.com/PowerShell/PowerShell/pull/15833#issuecomment-896187177
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
Review - Needed https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Review%20-%20Needed%22
Aug 10, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5136817414
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
August 10, 2021 17:44https://github.com/PowerShell/PowerShell/pull/15833#event-5136818060
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
Aug 10, 2021https://github.com/PowerShell/PowerShell/pull/15833#issuecomment-896187483
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
https://github.com/rjmholt
rjmholthttps://github.com/rjmholt
Aug 13, 2021 https://github.com/PowerShell/PowerShell/pull/15833#ref-pullrequest-969671021
Add more tests to validate the current command error handling behaviors #15919 https://github.com/PowerShell/PowerShell/pull/15919
Waiting on Author https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Waiting%20on%20Author%22
Aug 13, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5157275699
Stale https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3AStale
Aug 28, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5222054096
https://github.com/ghost
ghosthttps://github.com/ghost
Aug 28, 2021https://github.com/PowerShell/PowerShell/pull/15833#issuecomment-907682335
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
Sep 8, 2021https://github.com/PowerShell/PowerShell/pull/15833#event-5269916502
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F15833
https://github.com/iSazonov
iSazonov https://github.com/iSazonov
https://github.com/PowerShell/PowerShell/pull/15833/files/fe52ad89677453695e1e8bb33b659d8fbf274837
https://github.com/daxian-dbw
daxian-dbw https://github.com/daxian-dbw
https://github.com/JamesWTruher
JamesWTruher https://github.com/JamesWTruher
https://github.com/SteveL-MSFT
SteveL-MSFT https://github.com/SteveL-MSFT
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
https://github.com/adityapatwardhan
adityapatwardhan https://github.com/adityapatwardhan
Breaking-Change https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ABreaking-Change
CL-BreakingChange https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-BreakingChange
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Stale https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3AStale
Waiting on Author https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Waiting%20on%20Author%22
WG-Engine https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3AWG-Engine
setting error action preference in finally clause affects terminating parameter binding errors https://github.com/PowerShell/PowerShell/issues/15726
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/15833
https://github.com/rjmholt
https://github.com/iSazonov
https://github.com/anmenaga
https://github.com/adityapatwardhan
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.