How to add customized compiling message under Arduino IDE

#error Bad news, dude.

#warning Something fishy.