Add error reporting to deployment script