summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-04-27 14:43:29 +0200
committerThomas Haller <thaller@redhat.com>2021-05-03 10:11:21 +0200
commit1731fcf35e2257bf342d9465a2e9df3051fd2429 (patch)
treefdf3e78d8592715b64f66f056df0460cca6b8e59
parentf62ecc97c8f54bc16d4272aef65264bbd77581d8 (diff)
downloadNetworkManager-1731fcf35e2257bf342d9465a2e9df3051fd2429.tar.gz
cli: improve error message about ambigious text in nmc_string_to_bool()
The "on x off" is confusing. Use "on, off".
-rw-r--r--src/libnmc-base/nm-client-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnmc-base/nm-client-utils.c b/src/libnmc-base/nm-client-utils.c
index bdd3f4003d..246d750287 100644
--- a/src/libnmc-base/nm-client-utils.c
+++ b/src/libnmc-base/nm-client-utils.c
@@ -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;
}