summaryrefslogtreecommitdiff
path: root/bin/oe.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/oe.pl')
-rwxr-xr-xbin/oe.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/oe.pl b/bin/oe.pl
index a97088a7..5e9606b8 100755
--- a/bin/oe.pl
+++ b/bin/oe.pl
@@ -1945,7 +1945,8 @@ sub invoice {
$form->{type} = "invoice";
# locale messages
- $locale = LedgerSMB::Locale->get_handle($myconfig{countrycode});
+ $locale = LedgerSMB::Locale->get_handle($myconfig{countrycode}) or
+ $form->error("Locale not loaded: $!\n");
#$form->{charset} = $locale->encoding;
$form->{charset} = 'UTF-8';
$locale->encoding('UTF-8');