Added Request to on Error hook.