diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2015-06-25 09:34:39 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2015-06-25 09:41:09 +0200 |
commit | 02989896af5bb73e2a00f3aacdfc730759467458 (patch) | |
tree | 30272370f3d88375c159a6f283a9a3536a7f3d56 | |
parent | 44c36f1b16dca04b40ceb6aa59e33db97cf3afd1 (diff) | |
download | NetworkManager-02989896af5bb73e2a00f3aacdfc730759467458.tar.gz |
core: return more meaningful error when no device is found for activation
Example:
$ nmcli con add type eth con-name profile ifname nosuch
$ nmcli con up profile
or
# ip link set eth0 down
$ nmcli con add type eth con-name my-eth0 ifname eth0
$ nmcli con up my-eth0
Related to: 6fc3736c7ac139e40cb9f72b722b95b93c474979
-rw-r--r-- | src/nm-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index 13decd6d4f..67a2c48420 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -3035,7 +3035,7 @@ validate_activation_request (NMManager *self, g_set_error_literal (error, NM_MANAGER_ERROR, NM_MANAGER_ERROR_UNKNOWN_DEVICE, - "This connection requires an existing device."); + "No suitable device found for this connection."); goto error; } |