From 6a6617bc637c5c088e4dd565d0dd9553abe9dfd6 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Thu, 12 Oct 2023 17:20:24 -0400 Subject: [PATCH] Fix missing permissions error message The permissions field was mistakenly used instead of the missing field. Signed-off-by: Donnie Adams --- pkg/client/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/error.go b/pkg/client/error.go index 54a8db9e1..445b37ff6 100644 --- a/pkg/client/error.go +++ b/pkg/client/error.go @@ -20,7 +20,7 @@ type ErrRulesNeeded struct { func (e *ErrRulesNeeded) Error() string { prefix := PrefixErrRulesNeeded if len(e.Missing) > 0 { - perms, err := json.Marshal(e.Permissions) + perms, err := json.Marshal(e.Missing) if err != nil { panic(err) }