From e05afebed1a7498e6ab20033cdb11f19fb234e71 Mon Sep 17 00:00:00 2001 From: jan grant <3430517+jan-g@users.noreply.github.com> Date: Wed, 6 Dec 2017 17:15:16 +0000 Subject: [PATCH] Nitfix for #548 (#571) --- api/models/error.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/models/error.go b/api/models/error.go index 8d9fac7f1..a5fb7fa6c 100644 --- a/api/models/error.go +++ b/api/models/error.go @@ -150,15 +150,15 @@ var ( } ErrRoutesInvalidTimeout = err{ code: http.StatusBadRequest, - error: fmt.Errorf("timeout value is too large or small. 0 < timeout < max. async max: %d sync max: %d", MaxAsyncTimeout, MaxSyncTimeout), + error: fmt.Errorf("timeout value is out of range. Sync should be between 0 and %d, async should be between 0 and %d", MaxSyncTimeout, MaxAsyncTimeout), } ErrRoutesInvalidIdleTimeout = err{ code: http.StatusBadRequest, - error: fmt.Errorf("idle_timeout value is too large or small. 0 < timeout < %d", MaxIdleTimeout), + error: fmt.Errorf("idle_timeout value is out of range. It should be between 0 and %d", MaxIdleTimeout), } ErrRoutesInvalidMemory = err{ code: http.StatusBadRequest, - error: fmt.Errorf("memory value is invalid. 0 < memory < %d", RouteMaxMemory), + error: fmt.Errorf("memory value is out of range. It should be between 0 and %d", RouteMaxMemory), } ErrCallNotFound = err{ code: http.StatusNotFound,