mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
nomad/rpc: indicate missing region in error message
This commit is contained in:
@@ -511,7 +511,7 @@ func (r *rpcHandler) forward(method string, info structs.RPCInfo, args interface
|
||||
|
||||
region := info.RequestRegion()
|
||||
if region == "" {
|
||||
return true, fmt.Errorf("missing target RPC")
|
||||
return true, fmt.Errorf("missing region for target RPC")
|
||||
}
|
||||
|
||||
// Handle region forwarding
|
||||
|
||||
Reference in New Issue
Block a user