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

Syntax error in a regexp gives very confusing error message #195

Open
behrica opened this issue Feb 12, 2015 · 1 comment
Open

Syntax error in a regexp gives very confusing error message #195

behrica opened this issue Feb 12, 2015 · 1 comment

Comments

@behrica
Copy link

behrica commented Feb 12, 2015

If I create a regexp with an syntax error inside of the regexp, I get a confusing error in Gorilla (because the real error message is not visible:

(def re #"*test")
=>RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:221)

If I run it in a normal repl, I get the full error message, which in this case shows teh correct exception:

(def re #"*test")
=>
PatternSyntaxException Dangling meta character '*' near index 0
*test
^  java.util.regex.Pattern.error (Pattern.java:1924)
RuntimeException Unmatched delimiter: )  clojure.lang.Util.runtimeException (Util.java:221)
@JonyEpsilon
Copy link
Owner

Thanks for the report @behrica :-) Have been busy these last weeks, but hopefully should have some time to put towards Gorilla shortly, and will look at this then.

Jony

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

No branches or pull requests

2 participants