Add error handling
Merge pull request #28 from pmorie/build-deploy

Add error handling