mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-09 15:25:20 +02:00
[management] Fix api error message typo peers_group (#2862)
This commit is contained in:
@ -149,7 +149,7 @@ func (h *RoutesHandler) validateRoute(req api.PostApiRoutesJSONRequestBody) erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
if req.Peer == nil && req.PeerGroups == nil {
|
if req.Peer == nil && req.PeerGroups == nil {
|
||||||
return status.Errorf(status.InvalidArgument, "either 'peer' or 'peers_group' should be provided")
|
return status.Errorf(status.InvalidArgument, "either 'peer' or 'peer_groups' should be provided")
|
||||||
}
|
}
|
||||||
|
|
||||||
if req.Peer != nil && req.PeerGroups != nil {
|
if req.Peer != nil && req.PeerGroups != nil {
|
||||||
|
Reference in New Issue
Block a user