-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add a simple extended error message (#4646) #5568
base: master
Are you sure you want to change the base?
Conversation
That's clearly better than what it said before - but just curious: could this be made to return just "int constant cannot be casted into boolean", in a general way that would not have to be a special-case? |
@gohai |
@gohai I changed the mechanism. Now we can catch right away the case |
You might want to remove the debug Otherwise, as a band-aid, your current patch is clearly already an improvement (without the |
Thanks for your feedback. |
Hi @christianbender - I see you created another regex. My suggest was rather to modify this one so that it would work with whatever is going on with If you look here you see that your pull requests still has some random changes that come with it, like commented-out When I learn that I made a mistake in a previous commit I fix with |
|
I fixed the issue #4646.
Now we get for the code the following error message
produces the error message
instead of mere
23)
I put in a chunk of code that check the size of the error message. If the size to small (mere 3 characters) then the error message will be extended.