mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-31 20:11:31 +02:00
fix path handling + extract targets to separate table + guard resource/peer deletion
This commit is contained in:
@@ -262,3 +262,11 @@ func NewZoneNotFoundError(zoneID string) error {
|
||||
func NewDNSRecordNotFoundError(recordID string) error {
|
||||
return Errorf(NotFound, "dns record: %s not found", recordID)
|
||||
}
|
||||
|
||||
func NewResourceInUseError(resourceID string, proxyID string) error {
|
||||
return Errorf(PreconditionFailed, "resource %s is in use by proxy %s", resourceID, proxyID)
|
||||
}
|
||||
|
||||
func NewPeerInUseError(peerID string, proxyID string) error {
|
||||
return Errorf(PreconditionFailed, "peer %s is in use by proxy %s", peerID, proxyID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user