Rename errorEvent to error for simplicity