mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
rpc: correct error message
This commit is contained in:
parent
64e38e279e
commit
a507d2a019
@ -160,7 +160,7 @@ func validatePage(page, perPage, totalCount int) (int, error) {
|
|||||||
pages = 1 // one page (even if it's empty)
|
pages = 1 // one page (even if it's empty)
|
||||||
}
|
}
|
||||||
if page < 0 || page > pages {
|
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
|
return page, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user