Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Get/Write-GitStatus Errors #453

Merged
merged 4 commits into from
Mar 12, 2017
Merged

Handle Get/Write-GitStatus Errors #453

merged 4 commits into from
Mar 12, 2017

Conversation

dahlbyk
Copy link
Owner

@dahlbyk dahlbyk commented Mar 3, 2017

Completes #170, but with the error handling simplified and moved into the Git ScriptBlock (to keep Write-VcsStatus simple and consistent with its implementation in other projects).

powershell_2017-03-03_02-03-52

cc @paulmarsy

paulmarsy and others added 3 commits May 22, 2015 21:38
Adding try/catch logic to Write-VcsStatus so that if one of the scriptblocks that has been added to the VcsPromptStatuses array fails the other scriptblocks are still invoked and the effect on the user's prompt is minimized

Use of the ErrorVariable parameter during invocation is to also capture any errors that were written to the error stream
@dahlbyk dahlbyk added this to the v0.7.1 milestone Mar 12, 2017
@dahlbyk dahlbyk merged commit 99c1fc5 into master Mar 12, 2017
@dahlbyk dahlbyk deleted the prompt-error branch March 12, 2017 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants