chore: tweak error message

This commit is contained in:
Steven 2024-05-25 11:05:35 +08:00
parent d39cacf1f9
commit a177800e83

View file

@ -924,7 +924,7 @@ func (s *APIV1Service) buildMemoFindWithFilter(ctx context.Context, find *store.
if user == nil { if user == nil {
if filter == "" { if filter == "" {
// If no filter is provided, return an error. // If no filter is provided, return an error.
return status.Errorf(codes.InvalidArgument, "filter is required") return status.Errorf(codes.InvalidArgument, "filter is required for unauthenticated user")
} }
find.VisibilityList = []store.Visibility{store.Public} find.VisibilityList = []store.Visibility{store.Public}