Perhaps this should instead check for `!= SUCCESS`