Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Return error output when git commands fail#3738

Open
patrobinson wants to merge 5 commits into
zendesk:masterfrom
patrobinson:return-error-output
Open

Return error output when git commands fail#3738
patrobinson wants to merge 5 commits into
zendesk:masterfrom
patrobinson:return-error-output

Conversation

@patrobinson
Copy link
Copy Markdown
Contributor

While investigating an issue where git clones failed I found no command output was being logged.

There's two different classes involved in running commands via the ensure_tag_in_git_repository code path where the issue occurs.
Therefore I've added logging of command results to both (CommandExecutor and TerminalExecutor)

Patrick Robinson added 2 commits March 5, 2020 10:44
CommandExecutor returns stderr as a seperate stream
@patrobinson patrobinson requested a review from grosser as a code owner March 4, 2020 23:48
@patrobinson patrobinson requested a review from a team March 4, 2020 23:48
@grosser
Copy link
Copy Markdown
Contributor

grosser commented Mar 5, 2020

I like the capturing of err and out!
not a fan of openstruct though, prefer a Hash ... even better with a success, out, err triplet 🤷‍♂

@patrobinson
Copy link
Copy Markdown
Contributor Author

Yeah I've been writing Golang too long. Guess a Hash achieves the same thing

@patrobinson patrobinson force-pushed the return-error-output branch from 946358c to 7214f9b Compare March 13, 2020 00:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants