Skip to content

Conversation

spidergears
Copy link

Ref: #98

fixed with

  • on failure return user specified response
  • on failure response defaults to 0 as in previous versions

on failure return user specified response
on failure response defaults to 0 as in previous versions
@bmode
Copy link

bmode commented Dec 2, 2015

This looks like a good solution to me. My only comment would be to rename the new parameter. The current name, "on_failure", sounds to me like a callback function, which it is not. How about "failure_value" or "failure_result" or something similar?

@spidergears
Copy link
Author

Done!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants