Added an error event