Bug in Cloud compiler output

I’m testing something using the Cloud IDE and this fails to compile due to the “Quotation marks” when comparing the c start char:

The error I get is “Error: Could not compile. Please review your code.” Shouldn’t the Cloud IDE be able to show a better error than this?

When replaced with Apotrophes it all works as expected:

right, in C++ char literals are in single quotes, thus your error.

you didn’t even get a line number in the error?

1 Like

Did you get a red SHOW RAW button?

Usually you do get a more explicit error message for that kind of mistake.
This is what I get (and I got the SHOW RAW button and pressed it :wink: )

dummy.ino:4:12: warning: comparison with string literal results in unspecified behaviour [-Waddress]
   if (c == "{") return;

Bummer. Yeah. That shows a more descriptive error. I’m sure I’m not the first to ask this. How about showing “Error: Could not compile. Click the SHOW RAW button for details.”?