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

Allow the error parameter string to contain string formatting parameters #107

Merged
merged 4 commits into from
Jul 27, 2016

Conversation

skorokithakis
Copy link
Collaborator

This PR adds a call to format on the error parameter before displaying it, passing the data into the formatter. This allows custom error messages to change from something like "Invalid user id." to "Invalid user id: {}", which would display as "Invalid user id: 9243".

Please let me know if I missed something somewhere.

@skorokithakis
Copy link
Collaborator Author

This PR relates to issue #98.

@codecov-io
Copy link

codecov-io commented Jul 27, 2016

Current coverage is 100% (diff: 100%)

Merging #107 into master will not change coverage

@@           master   #107   diff @@
====================================
  Files           1      1          
  Lines         151    215    +64   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
+ Hits          151    215    +64   
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update 55a9f85...d124326

@skorokithakis skorokithakis merged commit d124326 into master Jul 27, 2016
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