From 1731fcf35e2257bf342d9465a2e9df3051fd2429 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 27 Apr 2021 14:43:29 +0200 Subject: [PATCH] cli: improve error message about ambigious text in nmc_string_to_bool() The "on x off" is confusing. Use "on, off". --- src/libnmc-base/nm-client-utils.c | 4 ++-- 1 file 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; }