Add a simple extended error message (#4646)#5568
Add a simple extended error message (#4646)#5568christianbender wants to merge 6 commits intoprocessing:masterfrom christianbender:fixed_#4646
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.