$ERROR compiler directive
The $ERROR directive generates a compilation error.
The $ERROR directive causes the QMBasic compiler to generate a compilation error. It is most likely to be used inside a $IFDEF conditional compilation structure to recognise that the program is in some way invalid.
$ERROR Platform not defined
The above example generates a compilation error if the PLATFORM token has not been defined.