pinniped CLI should print the audit-ID in certain error cases

Co-authored-by: Ryan Richard <richardry@vmware.com>
This commit is contained in:
Joshua Casey
2024-11-18 16:30:07 -06:00
parent b69507f7f3
commit 60bd118a9c
3 changed files with 48 additions and 3 deletions

View File

@@ -204,7 +204,7 @@ func handleCreateOrUpdate(
negotiatedSerializer runtime.NegotiatedSerializer,
) (bool, *http.Response, error) {
if req.GetBody == nil {
return true, nil, fmt.Errorf("unreadible body for request: %#v", middlewareReq) // this should never happen
return true, nil, fmt.Errorf("unreadable body for request: %#v", middlewareReq) // this should never happen
}
body, err := req.GetBody()