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



Copy link

@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
@Retsam Retsam deleted the reword-catch-predicate-error branch March 6, 2017 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants