cli: adjust error message about incompatible connection/device

# nmcli connection up w ifname w
  Error: device 'w' not compatible with connection 'w':The connection was not an Ethernet or PPPoE connection..
This commit is contained in:
Thomas Haller 2018-09-20 16:06:40 +02:00
parent 0cab530be6
commit 5f66700b4a

View file

@ -2287,7 +2287,7 @@ find_device_for_connection (NmCli *nmc,
continue;
if (!nm_device_connection_compatible (dev, connection, error)) {
g_prefix_error (error, _("device '%s' not compatible with connection '%s':"),
g_prefix_error (error, _("device '%s' not compatible with connection '%s': "),
iface, nm_setting_connection_get_id (s_con));
return FALSE;
}