Error message for search API does not include the "all" option

This commit is contained in:
Christian Winther 2017-08-29 15:41:21 +02:00 committed by GitHub
parent 25128c0b67
commit e4a72782c7
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)
}
}