Skip to content

Commit

Permalink
fix: throw erorr when unable to connect to aws
Browse files Browse the repository at this point in the history
  • Loading branch information
adikari committed Oct 3, 2022
1 parent 272e2f6 commit 84033c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ func deploy(cmd *cobra.Command, args []string) error {
return errors.Wrap(err, "failed to instantiate store")
}

all, _ := st.GetMany(config.All)
all, err := st.GetMany(config.All)

if err != nil {
return errors.Wrap(err, "failed to read existing params")
}

missing := getMissing(config.Secrets, all)

Expand Down Expand Up @@ -99,7 +103,7 @@ func deploy(cmd *cobra.Command, args []string) error {
err = st.PutMany(configsToDeploy)

if err != nil {
return errors.Wrap(err, "failed to write param")
return errors.Wrap(err, "failed to write params")
}

fmt.Printf("%d new configs deployed", len(configsToDeploy))
Expand Down

0 comments on commit 84033c7

Please sign in to comment.