Skip to content

Commit

Permalink
Update error message when no project is specified (#3813)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherias authored Jul 9, 2024
1 parent e761530 commit 35760c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/controlplane/handlers_authz.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35760c7

Please sign in to comment.