Add a simple extended error message (#4646)#5568
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? |
Sorry, something went wrong.
|
@gohai |
Sorry, something went wrong.
|
@gohai I changed the mechanism. Now we can catch right away the case |
Sorry, something went wrong.
|
You might want to remove the debug Otherwise, as a band-aid, your current patch is clearly already an improvement (without the |
Sorry, something went wrong.
Thanks for your feedback. |
Sorry, something went wrong.
|
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 |
Sorry, something went wrong.
|
Sorry, something went wrong.

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.