Skip to content

Add more detailed error code reporting - #272

Merged
jcjones merged 5 commits into
masterfrom
http-errors
Jun 1, 2015
Merged

jcjones merged 5 commits into
masterfrom
http-errors

Conversation

@bifurcation

Copy link
Copy Markdown
Contributor

This PR addresses #115 by adding more detailed error codes, which get translated to appropriate HTTP status codes by the WFE.

Comment thread ra/registration-authority.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I feel it might make more sense if this was a MalformedRequestError, although there is some cross over.

@rolandshoemaker

Copy link
Copy Markdown
Contributor

Looks good, it seems generally we've tried to only use naked returns on shorter functions since their use in longer ones like RA.NewCertificate can get a bit confusing but this is more of a style issue.

@jcjones

jcjones commented Jun 1, 2015

Copy link
Copy Markdown
Contributor

LGTM. I'm going to re-clothe the naked returns and then will merge.

jcjones added a commit that referenced this pull request Jun 1, 2015
Add more detailed error code reporting
@jcjones
jcjones merged commit 810c6b5 into master Jun 1, 2015
@jcjones
jcjones deleted the http-errors branch June 1, 2015 05:22
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.35%) to 45.1% when pulling 457f71a on http-errors into 6ab6f33 on master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.23%) to 45.31% when pulling a188c2c on http-errors into ee631e9 on master.

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.

4 participants