Throw a better exception when deployment errors occur