Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Implement RFC 277: native error throwing#15897

Merged
daxian-dbw merged 47 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
rjmholt:nativeerror-addressfeedbackrjmholt/PowerShell:nativeerror-addressfeedbackCopy head branch name to clipboard
Aug 24, 2021
Merged

Implement RFC 277: native error throwing#15897
daxian-dbw merged 47 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
rjmholt:nativeerror-addressfeedbackrjmholt/PowerShell:nativeerror-addressfeedbackCopy head branch name to clipboard

Conversation

@rjmholt

@rjmholt rjmholt commented Aug 9, 2021

Copy link
Copy Markdown
Collaborator

PR Summary

Continuation of @rkeithhill's work in #15757.

Implements error throwing with error action preference integration for native executables, similar to set -e scenarios on *nix.

PR Context

See on PowerShell/PowerShell-RFC#277.

PR Checklist

Comment thread src/System.Management.Automation/engine/SpecialVariables.cs
Comment thread src/System.Management.Automation/engine/SpecialVariables.cs Outdated
Comment thread src/System.Management.Automation/engine/SpecialVariables.cs Outdated
@rjmholt rjmholt requested a review from daxian-dbw August 23, 2021 20:01
Comment thread src/System.Management.Automation/engine/NativeCommandProcessor.cs Outdated
Comment thread src/System.Management.Automation/engine/NativeCommandProcessor.cs Outdated
@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Aug 23, 2021
@ghost ghost removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Aug 24, 2021
@rjmholt rjmholt requested a review from daxian-dbw August 24, 2021 00:28
Comment thread src/System.Management.Automation/engine/NativeCommandProcessor.cs Outdated
Comment thread test/powershell/engine/Basic/NativeCommandErrorHandling.Tests.ps1 Outdated
continue
}

$hitTrap = $false

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we explicitly create $exception in the scope too?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it'll be $null by default, rather than $false, so we don't really need to

@daxian-dbw daxian-dbw merged commit a4d1457 into PowerShell:master Aug 24, 2021
@rjmholt rjmholt deleted the nativeerror-addressfeedback branch September 2, 2021 17:02
xtqqczze pushed a commit to xtqqczze/PowerShell-PowerShell that referenced this pull request Sep 2, 2021
@ghost

ghost commented Dec 16, 2021

Copy link
Copy Markdown

🎉v7.3.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.