Fix #1, proper message

The compiler now produces a proper message to tell the user about the problem instead of crashing unexpectedly.