cli: improve error message about ambigious text in nmc_string_to_bool()

The "on x off" is confusing. Use "on, off".
This commit is contained in:
Thomas Haller 2021-04-27 14:43:29 +02:00
parent f62ecc97c8
commit 1731fcf35e
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -104,7 +104,7 @@ nmc_string_to_bool(const char *str, gboolean *val_bool, GError **error)
*/
_("'%s' is ambiguous (%s)"),
str,
"on x off");
"on, off");
return FALSE;
}
@ -141,7 +141,7 @@ nmc_string_to_ternary(const char *str, NMTernary *val, GError **error)
*/
_("'%s' is ambiguous (%s)"),
str,
"on x off");
"on, off");
return FALSE;
}