From eaa83eedc55cb765f331b6ae693904c2528a4e76 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 14 Aug 2018 18:18:58 +0200 Subject: [PATCH] iwd: improve error messages Fix errors, typoes and ambiguities. --- src/devices/wifi/nm-device-iwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c index aaf8e81bb5..4fbf0e5b39 100644 --- a/src/devices/wifi/nm-device-iwd.c +++ b/src/devices/wifi/nm-device-iwd.c @@ -510,7 +510,7 @@ check_connection_compatible (NMDevice *device, NMConnection *connection, GError if (perm_hw_addr) { if (mac && !nm_utils_hwaddr_matches (mac, -1, perm_hw_addr, -1)) { nm_utils_error_set_literal (error, NM_UTILS_ERROR_CONNECTION_AVAILABLE_TEMPORARY, - "mac address mispatches"); + "device MAC address does not match the profile"); return FALSE; } @@ -521,13 +521,13 @@ check_connection_compatible (NMDevice *device, NMConnection *connection, GError if (nm_utils_hwaddr_matches (mac_blacklist[i], -1, perm_hw_addr, -1)) { nm_utils_error_set_literal (error, NM_UTILS_ERROR_CONNECTION_AVAILABLE_TEMPORARY, - "mac address blacklisted"); + "MAC address blacklisted"); return FALSE; } } } else if (mac) { nm_utils_error_set_literal (error, NM_UTILS_ERROR_CONNECTION_AVAILABLE_TEMPORARY, - "device has no valid mac address as required by profile"); + "device has no valid MAC address as required by profile"); return FALSE; }