rpc: correct error message

This commit is contained in:
Anton Kaliaev 2019-08-06 17:17:38 +04:00
parent 64e38e279e
commit a507d2a019
No known key found for this signature in database
GPG Key ID: 7B6881D965918214

View File

@ -160,7 +160,7 @@ func validatePage(page, perPage, totalCount int) (int, error) {
pages = 1 // one page (even if it's empty)
}
if page < 0 || page > pages {
return 1, fmt.Errorf("page should be within [0, %d] range, given %d", pages, page)
return 1, fmt.Errorf("page should be within [1, %d] range, given %d", pages, page)
}
return page, nil