Added an error message to the error event