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

Expose JIRA Errors back to user #30

Merged
merged 1 commit into from
May 12, 2018
Merged

Expose JIRA Errors back to user #30

merged 1 commit into from
May 12, 2018

Conversation

kylef
Copy link
Owner

@kylef kylef commented May 12, 2018

Maybe depends on #29 and we can add tests for this.

@kylef kylef requested a review from kattrali May 12, 2018 18:54
Copy link
Collaborator

@kattrali kattrali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs tests

goji/client.py Outdated
def validate_response(self, response):
if response.status_code == 400:
error = response.json()
raise JIRAException(error.get('errorMessages'), error.get('errors'))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add default values here in case either is none

@kattrali kattrali merged commit 91dcd45 into master May 12, 2018
@kattrali kattrali deleted the kylef/errors branch May 12, 2018 20:10
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