From 708f63c1204f7006ec984aa9f98f146fe2d5a0f9 Mon Sep 17 00:00:00 2001 From: Ludvig Strigeus Date: Sun, 7 Oct 2018 19:37:40 +0200 Subject: [PATCH] win32: Print other message if route already exists --- network_win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network_win32.cpp b/network_win32.cpp index 5bc7f01..a8c0469 100644 --- a/network_win32.cpp +++ b/network_win32.cpp @@ -289,8 +289,8 @@ static bool AddRoute(int family, if (undo_array) undo_array->push_back(row); - RINFO("Added Route %s => %s", print_ip_prefix(buf1, family, dest, dest_prefix), - print_ip_prefix(buf2, family, gateway, -1)); + RINFO("Added Route %s => %s%s", print_ip_prefix(buf1, family, dest, dest_prefix), + print_ip_prefix(buf2, family, gateway, -1), (error == ERROR_OBJECT_ALREADY_EXISTS) ? " (already exists)" : ""); return true; } RINFO("AddRoute failed (%d) %s => %s", error, print_ip_prefix(buf1, family, dest, dest_prefix),