Skip to content

Commit

Permalink
Fix typo in object and objecttype package list middleware error messa…
Browse files Browse the repository at this point in the history
…ges (#167)
  • Loading branch information
kkajla12 authored Jun 21, 2023
1 parent 1e5fd3d commit 336f944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/authz/object/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (parser ObjectListParamParser) ParseValue(val string, sortBy string) (inter
case "createdAt":
afterValue, err := time.Parse(time.RFC3339, val)
if err != nil || afterValue.Equal(time.Time{}) {
return nil, fmt.Errorf("must be a valid time in the %s", time.RFC3339)
return nil, fmt.Errorf("must be a valid time in the format %s", time.RFC3339)
}

return &afterValue, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/authz/objecttype/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (parser ObjectTypeListParamParser) ParseValue(val string, sortBy string) (i
case "createdAt":
afterValue, err := time.Parse(time.RFC3339, val)
if err != nil || afterValue.Equal(time.Time{}) {
return nil, fmt.Errorf("must be a valid time in the %s", time.RFC3339)
return nil, fmt.Errorf("must be a valid time in the format %s", time.RFC3339)
}

return &afterValue, nil
Expand Down

0 comments on commit 336f944

Please sign in to comment.