Updating err event to be error