diff --git a/cmd/cloud/deploy.go b/cmd/cloud/deploy.go index c722d81d0..36a3dbc4c 100644 --- a/cmd/cloud/deploy.go +++ b/cmd/cloud/deploy.go @@ -1,7 +1,6 @@ package cloud import ( - "fmt" "time" cloud "github.com/astronomer/astro-cli/cloud/deploy" @@ -132,8 +131,7 @@ func deploy(cmd *cobra.Command, args []string) error { } if git.HasUncommittedChanges("") && !forceDeploy { - fmt.Println(registryUncommitedChangesMsg) - return nil + return errors.New(registryUncommitedChangesMsg) } // case for astro deploy --dags whose default operation should be not running any tests