mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 00:40:32 +01:00
libnm-util: better error message about missing PPP setting
This commit is contained in:
parent
22aee1ac8b
commit
71bae14f2c
1 changed files with 4 additions and 4 deletions
|
|
@ -149,10 +149,10 @@ verify (NMSetting *setting, GSList *all_settings, GError **error)
|
|||
/* Serial connections require a PPP setting */
|
||||
if (all_settings &&
|
||||
!g_slist_find_custom (all_settings, NM_SETTING_PPP_SETTING_NAME, find_setting_by_name)) {
|
||||
g_set_error (error,
|
||||
NM_SETTING_SERIAL_ERROR,
|
||||
NM_SETTING_SERIAL_ERROR_MISSING_PPP_SETTING,
|
||||
NULL);
|
||||
g_set_error_literal (error,
|
||||
NM_SETTING_SERIAL_ERROR,
|
||||
NM_SETTING_SERIAL_ERROR_MISSING_PPP_SETTING,
|
||||
"Missing required PPP setting");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue