mirror of
https://github.com/usememos/memos.git
synced 2025-01-04 03:23:02 +08:00
chore: tweak error message
This commit is contained in:
parent
d39cacf1f9
commit
a177800e83
1 changed files with 1 additions and 1 deletions
|
@ -924,7 +924,7 @@ func (s *APIV1Service) buildMemoFindWithFilter(ctx context.Context, find *store.
|
|||
if user == nil {
|
||||
if filter == "" {
|
||||
// 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}
|
||||
|
|
Loading…
Reference in a new issue