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-27 13:53:02 -06:00
co-authored by Ryan Richard
parent b69507f7f3
commit 60bd118a9c
3 changed files with 48 additions and 3 deletions
+1 -1
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()