Emit correct event when an error occurs in the adaptor.