manage error with deployment script