From c4f17771e356d3a8859556db7c5baf7225e32844 Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Fri, 12 Apr 2024 18:44:48 +0200 Subject: [PATCH] return error instead of log --- client/internal/routemanager/systemops.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/internal/routemanager/systemops.go b/client/internal/routemanager/systemops.go index 1ee54b746..ad7edd366 100644 --- a/client/internal/routemanager/systemops.go +++ b/client/internal/routemanager/systemops.go @@ -256,8 +256,7 @@ func addNonExistingRoute(prefix netip.Prefix, intf string) error { return fmt.Errorf("exists in route table: %w", err) } if ok { - log.Warnf("Skipping adding a new route for network %s because it already exists", prefix) - return nil + return fmt.Errorf("Skipping adding a new route for network %s because it already exists", prefix) } ok, err = isSubRange(prefix)