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

Wrap errors in _error key #8

Merged
merged 1 commit into from Sep 4, 2019

Conversation

donoghuc
Copy link
Member

@donoghuc donoghuc commented Sep 4, 2019

Previously, the task helper would rescue errors in the run method and
simply print their hashified version. This caused Bolt to synthesize its own
_error object (simply stating the task failed and its exit code) which
took precedence over the actual underlying cause.

We now properly wrap the result in _error so Bolt knows that it should
display that information to the user.

Porting over the changes from puppetlabs/puppetlabs-ruby_task_helper#5

Previously, the task helper would rescue errors in the run method and
simply print their hashified version. This caused Bolt to synthesize its own
_error object (simply stating the task failed and its exit code) which
took precedence over the actual underlying cause.

We now properly wrap the result in _error so Bolt knows that it should
display that information to the user.

Porting over the changes from puppetlabs/puppetlabs-ruby_task_helper#5
@lucywyman lucywyman merged commit 32b63f8 into puppetlabs:master Sep 4, 2019
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.

None yet

2 participants