浏览代码

Remove url from error message.

Mariano Cano 7 年之前
父节点
当前提交
42fe92fd5c
共有 1 个文件被更改,包括 2 次插入 和 4 次删除
  1. 2 4
      cmd/step-ca/main.go

+ 2 - 4
cmd/step-ca/main.go

@@ -298,7 +298,7 @@ func onboardAction(ctx *cli.Context) error {
 
 
 	res, err := http.Get(onboardingURL)
 	res, err := http.Get(onboardingURL)
 	if err != nil {
 	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)
 	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))
 	resp, err := http.Post(onboardingURL, "application/json", bytes.NewBuffer(payload))
 	if err != nil {
 	if err != nil {
-		return errors.Wrapf(err, "http POST %s failed", onboardingURL)
+		return errors.Wrap(err, "error connecting onboarding guide")
 	}
 	}
 	resp.Body.Close()
 	resp.Body.Close()
 
 
@@ -342,8 +342,6 @@ func onboardAction(ctx *cli.Context) error {
 	for {
 	for {
 		time.Sleep(1 * time.Second)
 		time.Sleep(1 * time.Second)
 	}
 	}
-
-	return nil
 }
 }
 
 
 // fatal writes the passed error on the standard error and exits with the exit
 // fatal writes the passed error on the standard error and exits with the exit