nmcli: Clarify what a valid secondary is

This commit is contained in:
Alexander Krause 2025-12-25 21:54:56 +01:00
parent 9275889767
commit a708f2ce9b
No known key found for this signature in database
GPG key ID: 593EED05BC3EF6FD

View file

@ -382,7 +382,7 @@ _set_fcn_precheck_connection_secondaries(NMClient *client,
} else {
/* Currently, NM only supports VPN connections as secondaries */
if (!nm_connection_is_valid_secondary(con)) {
g_set_error(error, 1, 0, _("'%s' is not a valid secondary profile"), *iter);
g_set_error(error, 1, 0, _("'%s' is not a valid VPN profile, e.g., Wireguard or OpenVPN."), *iter);
return FALSE;
}
}
@ -394,7 +394,7 @@ _set_fcn_precheck_connection_secondaries(NMClient *client,
}
/* Currently, NM only supports VPN connections, including Wireguard, as secondaries */
if (!nm_connection_is_valid_secondary(con)) {
g_set_error(error, 1, 0, _("'%s' is not a valid secondary profile"), *iter);
g_set_error(error, 1, 0, _("'%s' is not a valid VPN profile, e.g., Wireguard or OpenVPN."), *iter);
return FALSE;
}