Inserted ERROR macros where they weren't used already.

This makes for more readable exceptions, as line number and file
are automatically added.