Skip to content

Log VCS error output as debug messages - #533

Merged
mattfarina merged 1 commit into
Masterminds:masterfrom
atombender:log_errors_as_debug
Aug 2, 2016
Merged

Log VCS error output as debug messages#533
mattfarina merged 1 commit into
Masterminds:masterfrom
atombender:log_errors_as_debug

Conversation

@atombender

Copy link
Copy Markdown
Contributor

Enables logging of VCS error output when --debug is enabled.

I don't know if this is the ideal design — to be sure, the VCS error isn't ideal, and there's no central error reporting mechanism other than msg, which is why I extract the error there.

If I were to improve this, it'd be to encapsulate "some program failed to run and this is its failure info" as an error interface.

But I was fed up with getting unhelpful error messages ("Unable to get repository") from Glide, and this fixes that.

@mattfarina
mattfarina merged commit beaa519 into Masterminds:master Aug 2, 2016
@mattfarina

Copy link
Copy Markdown
Member

Thanks for your contribution.

I understand your frustration. Thanks for helping to make it better.

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