From 35760c7edff10f1bc193820033e938e23020e376 Mon Sep 17 00:00:00 2001 From: Eleftheria Stein-Kousathana Date: Tue, 9 Jul 2024 12:56:08 +0200 Subject: [PATCH] Update error message when no project is specified (#3813) --- internal/controlplane/handlers_authz.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/controlplane/handlers_authz.go b/internal/controlplane/handlers_authz.go index 7f2229c57e..758c6d0ef9 100644 --- a/internal/controlplane/handlers_authz.go +++ b/internal/controlplane/handlers_authz.go @@ -206,7 +206,8 @@ func getDefaultProjectID( } if len(prjs) != 1 { - return uuid.UUID{}, util.UserVisibleError(codes.PermissionDenied, "Cannot determine default project. Please specify one.") + return uuid.UUID{}, util.UserVisibleError(codes.PermissionDenied, "Multiple project found, cannot "+ + "determine default project. Please explicitly set a project and run the command again.") } return prjs[0], nil