mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 02:40:17 +01:00
cli: fix crash in interactive mode for "describe ."
https://bugzilla.gnome.org/show_bug.cgi?id=788104
This commit is contained in:
parent
7070d17ced
commit
54490be96d
1 changed files with 4 additions and 1 deletions
|
|
@ -7268,7 +7268,10 @@ editor_menu_main (NmCli *nmc, NMConnection *connection, const char *connection_t
|
|||
} else
|
||||
ss = menu_ctx.curr_setting;
|
||||
|
||||
if (descr_all) {
|
||||
if (!ss) {
|
||||
g_print (_("Error: no setting selected; valid are [%s]\n"), valid_settings_str);
|
||||
g_print (_("use 'goto <setting>' first, or 'describe <setting>.<property>'\n"));
|
||||
} else if (descr_all) {
|
||||
/* Show description for all properties */
|
||||
print_setting_description (ss);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue