I don't know this code, but that code was checking `success`, maybe we'd need to keep it but modify the check to use `not success` ?