fail the script if there are errors along the way
Merge pull request #30 from gamechanger/ps-publish-fail

fail the script if there are errors along the way