mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-01 21:40:30 +00:00
Remove url from error message.
This commit is contained in:
parent
6148f8f775
commit
42fe92fd5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user