summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 20:47:51 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 20:47:51 (EDT)
commit8b6be3f9d525b833c76ed5587139ae0152f603f2 (patch)
tree50f0acf5d274eaec7d94dd86c1f68d39bbc6d63b /src
parente30534c18b82a8ba9f5825818ebb10b329c73bb9 (diff)
load_locale(): Throw an error, not a warning, on missing locale
Diffstat (limited to 'src')
-rw-r--r--src/locale.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale.sh b/src/locale.sh
index 9924d46..fd578ec 100644
--- a/src/locale.sh
+++ b/src/locale.sh
@@ -50,7 +50,7 @@ load_locale()
"${LC_MESSAGES%_*}"; then
if ! _try_load_locale "${localedir}" \
"${DEFAULT_LOCALE}"; then
- warn 'Cannot load locale'
+ error 'Cannot load locale'
return 1
fi
fi