mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
Fix error handling
This commit is contained in:
@@ -40,6 +40,7 @@ func (h *Manager) Update(forwardRules []firewallManager.ForwardRule) error {
|
||||
rule, err := h.firewallManager.AddDNATRule(rule)
|
||||
if err != nil {
|
||||
mErr = multierror.Append(mErr, fmt.Errorf("failed to add forward rule '%s': %v", rule, err))
|
||||
continue
|
||||
}
|
||||
h.fwRules[id] = rule
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user