correct example for error event