Fixed success being treated as error

The `SUCCESS` return value wasn't expected previously.