Skip to content

Commit

Permalink
Merge pull request #3119 from jippi/patch-3
Browse files Browse the repository at this point in the history
Error message for search API does not include the "all" option
  • Loading branch information
chelseakomlo authored Aug 29, 2017
2 parents 99d5c64 + 3a5a881 commit 75221f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/search_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 75221f9

Please sign in to comment.