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

Reword the catch predicate TypeError message for clarity #1350

Merged

Conversation

@Retsam
Copy link
Contributor

@Retsam Retsam commented Feb 27, 2017

If .catch is passed a non-object instead of a predicate, I found the current error message a bit difficult to read:

TypeError: expecting an object but got A catch statement predicate [object String]

New error message:

TypeError: Catch statement predicate: expecting an object but got [object String]

(Sorry if you don't like these sort of "trivial" pull requests)

@petkaantonov petkaantonov merged commit 901a563 into petkaantonov:master Mar 3, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@Retsam Retsam deleted the Retsam:reword-catch-predicate-error branch Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants