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

Fix exception message when invalid matching. #29

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

msroz
Copy link

@msroz msroz commented Feb 20, 2019

exception message is a bit confusing for developer when option matching is invalid type.

exception message is following:

 #=> :matches must be a string or regex (ArgumentError)

it is a bit confusing because of no matches options.

Retryable.retryable(
  matching: 1 # invalid type
) do |retries, exception|
  raise StandardError, "test"
end

@nfedyashev nfedyashev merged commit de52b32 into nfedyashev:master Feb 20, 2019
@nfedyashev
Copy link
Owner

@msroz thanks for noticing! Good catch

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.

2 participants