Skip to content

Commit c4aabc2

Browse files
committed
update default page size to 200 + tweak error message
1 parent 3713bc0 commit c4aabc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ func (api *API) extensionQuery(rw http.ResponseWriter, r *http.Request) {
169169
for _, filter := range query.Filters {
170170
if filter.PageSize < 0 || filter.PageSize > api.MaxPageSize {
171171
httpapi.Write(rw, http.StatusBadRequest, httpapi.ErrorResponse{
172-
Message: "Invalid page size",
173-
Detail: "Check that the page size is between 0 and " + strconv.Itoa(api.MaxPageSize),
172+
Message: "The page size must be between 0 and " + strconv.Itoa(api.MaxPageSize),
173+
Detail: "Contact an administrator to increase the page size",
174174
RequestID: httpmw.RequestID(r),
175175
})
176176
}

cli/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/coder/code-marketplace/storage"
2222
)
2323

24-
const maxPageSizeDefault int = 100
24+
const maxPageSizeDefault int = 200
2525

2626
func server() *cobra.Command {
2727
var (

0 commit comments

Comments
 (0)