Fix pipeline error messages

* On OS X Error Code of zero does not return Success simplify the checks