summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/cmd.sh2
-rw-r--r--lib/locale.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cmd.sh b/lib/cmd.sh
index 3f32d7a..4a03664 100644
--- a/lib/cmd.sh
+++ b/lib/cmd.sh
@@ -104,6 +104,6 @@ run_cmd()
if is_cmd "${cmd}"; then
"cmd_${cmd}_main" "${@}"
else
- printf 'Command "%s" not found\n' "${cmd}"
+ error 1 'Command "%s" not found' "${cmd}"
fi
}
diff --git a/lib/locale.sh b/lib/locale.sh
index 33245aa..9b9ccbe 100644
--- a/lib/locale.sh
+++ b/lib/locale.sh
@@ -42,7 +42,7 @@ load_locale()
if ! _try_load_locale "${LC_MESSAGES%.*}"; then
if ! _try_load_locale "${LC_MESSAGES%_*}"; then
if ! _try_load_locale "${DEFAULT_LOCALE}"; then
- printf 'Cannot load locale' >&2
+ warn 'Cannot load locale'
return 1
fi
fi