From 66f7516f5e06fbf9ab081f679b432ac38aa36982 Mon Sep 17 00:00:00 2001 From: Alexandre Mottier Date: Wed, 16 Apr 2025 12:21:09 +0400 Subject: [PATCH] fix(core): add quota in quotas exceeded error Signed-off-by: Alexandre Mottier --- core/command_interceptor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/command_interceptor.go b/core/command_interceptor.go index 4c28c99847..6a2e6d2ff7 100644 --- a/core/command_interceptor.go +++ b/core/command_interceptor.go @@ -86,7 +86,7 @@ func sdkStdErrorInterceptor( invalidArgs := make([]string, len(sdkError.Details)) resources := make([]string, len(sdkError.Details)) for i, d := range sdkError.Details { - invalidArgs[i] = fmt.Sprintf("- %s has reached its quota (%d/%d)", d.Resource, d.Current, d.Current) + invalidArgs[i] = fmt.Sprintf("- %s has reached its quota (%d/%d)", d.Resource, d.Current, d.Quota) resources[i] = fmt.Sprintf("'%v'", d.Resource) }