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

Ensure UserError is raised with a reason value #511

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

marcparadise
Copy link
Contributor

This commit addresses the issue fixed in
416cf28; however that commit
discarded the reason attached to the exception. This should be kept,
since Train::UserError covers a lot of ground and the reason
code can help clients differentiate cause without resorting to
their own parsing of error string.

Signed-off-by: Marc A. Paradise marc.paradise@gmail.com

Description

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New content (non-breaking change)
  • Breaking change (a content change which would break existing functionality or processes)

Checklist:

  • I have read the CONTRIBUTING document.

This commit addresses the issue fixed in
416cf28; however that commit
discarded the reason attached to the exception.  This should be kept,
since Train::UserError covers a lot of ground and the reason
code can help clients differentiate cause without resorting to
their own parsing of error string.

Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
@codeclimate
Copy link

codeclimate bot commented Aug 28, 2019

Code Climate has analyzed commit 50a8724 and detected 0 issues on this pull request.

View more on Code Climate.

@tas50 tas50 merged commit d8cc268 into inspec:master Aug 28, 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.

2 participants