Error in error command?

22 Apr 2010 . Edited: 22 Apr 2010

The error command - to print a custom error message and exit with the blue LEDs of death - only prints the message if it is 16 characters or longer. And then it only prints the first 16 characters. Shorter messages are printed ok. This is my command

 error("O dear!");

 So maybe I'm doing something wrong?

22 Apr 2010

Hi Bert,

Make sure you include a "\n" character to ensure the buffer is flushed.

...maybe we should consider implicitly forcing buffer flushes to avoid this sort of behaviour.

Simon

22 Apr 2010

Hi Simon,

Thanks, that solved it!

>...maybe we should consider implicitly forcing buffer flushes to avoid this sort of behaviour.

Perhaps, but adding the instruction to use \n to the handbook would be enough I guess.

Bert