From 84033c715611f8ab2d10010fa9eb998463fb1fd1 Mon Sep 17 00:00:00 2001 From: subash Date: Mon, 3 Oct 2022 17:06:20 +1100 Subject: [PATCH] fix: throw erorr when unable to connect to aws --- cmd/deploy.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/deploy.go b/cmd/deploy.go index 17e809d..2acd7ad 100644 --- a/cmd/deploy.go +++ b/cmd/deploy.go @@ -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) @@ -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))