Assert on error event.