From 9a1c2e2641143b2407a83769d0dbc7ee0ca0aa56 Mon Sep 17 00:00:00 2001 From: Dan Aharoni Date: Sun, 24 Nov 2019 15:50:15 +0200 Subject: [PATCH] [NOD-457] Fix error message (#486) --- apiserver/controllers/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/controllers/block.go b/apiserver/controllers/block.go index 0024992a8..a5282db7e 100644 --- a/apiserver/controllers/block.go +++ b/apiserver/controllers/block.go @@ -55,7 +55,7 @@ func GetBlockByHashHandler(blockHash string) (interface{}, error) { // GetBlocksHandler searches for all blocks func GetBlocksHandler(order string, skip uint64, limit uint64) (interface{}, error) { if limit > maxGetBlocksLimit { - return nil, httpserverutils.NewHandlerError(http.StatusUnprocessableEntity, errors.Errorf("The maximum allowed value for the limit is %d", maxGetTransactionsLimit)) + return nil, httpserverutils.NewHandlerError(http.StatusUnprocessableEntity, errors.Errorf("The maximum allowed value for the limit is %d", maxGetBlocksLimit)) } blocks := []*dbmodels.Block{} db, err := database.DB()