From 42fe92fd5c7b7b5ff523f1235a553dbdd1c5eb16 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 11 Sep 2019 17:36:48 -0700 Subject: [PATCH] Remove url from error message. --- cmd/step-ca/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/step-ca/main.go b/cmd/step-ca/main.go index 8bd8ff7c..25dd7008 100644 --- a/cmd/step-ca/main.go +++ b/cmd/step-ca/main.go @@ -298,7 +298,7 @@ func onboardAction(ctx *cli.Context) error { res, err := http.Get(onboardingURL) if err != nil { - return errors.Wrapf(err, "http GET %s failed", onboardingURL) + return errors.Wrap(err, "error connecting onboarding guide") } body, err := ioutil.ReadAll(res.Body) @@ -333,7 +333,7 @@ func onboardAction(ctx *cli.Context) error { resp, err := http.Post(onboardingURL, "application/json", bytes.NewBuffer(payload)) if err != nil { - return errors.Wrapf(err, "http POST %s failed", onboardingURL) + return errors.Wrap(err, "error connecting onboarding guide") } resp.Body.Close() @@ -342,8 +342,6 @@ func onboardAction(ctx *cli.Context) error { for { time.Sleep(1 * time.Second) } - - return nil } // fatal writes the passed error on the standard error and exits with the exit