Merge pull request #3119 from jippi/patch-3

Error message for search API does not include the "all" option
This commit is contained in:
Chelsea Komlo 2017-08-29 13:23:44 -04:00 committed by GitHub
commit a544ee89e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}