win32: Print other message if route already exists
This commit is contained in:
parent
6d916e9aaa
commit
708f63c120
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue