From e4a72782c7f2c28152600a4397c18325ceda2f3f Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Tue, 29 Aug 2017 15:41:21 +0200 Subject: [PATCH] Error message for search API does not include the "all" option --- nomad/search_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/search_endpoint.go b/nomad/search_endpoint.go index daa40148d..b1f5fb384 100644 --- a/nomad/search_endpoint.go +++ b/nomad/search_endpoint.go @@ -80,7 +80,7 @@ func getResourceIter(context structs.Context, prefix string, ws memdb.WatchSet, case structs.Deployments: return state.DeploymentsByIDPrefix(ws, prefix) default: - return nil, fmt.Errorf("context must be one of %v; got %q", allContexts, context) + return nil, fmt.Errorf("context must be one of %v or 'all' for all contexts; got %q", allContexts, context) } }