Use the new error() method for error reporting

Trigger errors on the player using the error() method instead of firing them directly.