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

Change exception messages to lowercase + no-dot #315

Merged
merged 1 commit into from
May 22, 2020
Merged

Conversation

axic
Copy link
Member

@axic axic commented May 16, 2020

No description provided.

Copy link
Collaborator

@chfast chfast left a comment

Choose a reason for hiding this comment

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

Besides the issue with the most frequent error, it looks good.

@@ -175,7 +175,7 @@ inline parser_result<Global> parse(const uint8_t* pos, const uint8_t* end)
inline parser_result<Limits> parse_limits(const uint8_t* pos, const uint8_t* end)
{
if (pos == end)
throw parser_error{"Unexpected EOF"};
throw parser_error{"unexpected EOF"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would do something more about this one. It is repeated many times and the error message is confusing as it can mean the unexpected end of a section.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd reword them in a different PR, if it needs to be done.

@axic axic requested a review from gumb0 May 22, 2020 14:14
@axic axic marked this pull request as ready for review May 22, 2020 15:50
@axic axic force-pushed the exception-style branch 3 times, most recently from f7833d3 to b3778b3 Compare May 22, 2020 16:55
@axic axic requested review from gumb0 and chfast May 22, 2020 16:57
@axic axic force-pushed the exception-style branch from b3778b3 to 82b0f33 Compare May 22, 2020 17:01
@axic axic merged commit 7b7db05 into master May 22, 2020
@axic axic deleted the exception-style branch May 22, 2020 17:40
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.

3 participants