User funny_potato has an answer:
# RR__FailedMsg forces the script to fail and prints a message in Analyse, in the "failed messages" section
# LOG_ERROR prints a message inside the "Player messages" window of the conductor at runtime. But I didn't find these messages in Analyse.
# SCRIPT_MESSAGE prints messages in a custom subsection of the Errors section in Analyse