4
0
Эх сурвалжийг харах

linting and fixing review feedback

max furman 4 жил өмнө
parent
commit
ffff9af323
2 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 2 1
      ca/client.go
  2. 2 1
      cmd/step-ca/main.go

+ 2 - 1
ca/client.go

@@ -1135,7 +1135,8 @@ retry:
 	}
 	var check api.SSHCheckPrincipalResponse
 	if err := readJSON(resp.Body, &check); err != nil {
-		return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response", u)
+		return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response",
+			[]any{u, errs.WithMessage("Failed to parse response from /ssh/check-host endpoint")}...)
 	}
 	return &check, nil
 }

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

@@ -4,6 +4,7 @@ import (
 	"flag"
 	"fmt"
 	"html"
+	"log"
 	"math/rand"
 	"net/http"
 	"os"
@@ -179,7 +180,7 @@ $ step-ca --context=mybiz --password-file ./password.txt
 				Addr:              debugProfAddr,
 				ReadHeaderTimeout: 15 * time.Second,
 			}
-			srv.ListenAndServe()
+			log.Println(srv.ListenAndServe())
 		}()
 	}