summaryrefslogtreecommitdiffstats
path: root/src/ob-applypatches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ob-applypatches.sh')
-rw-r--r--src/ob-applypatches.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ob-applypatches.sh b/src/ob-applypatches.sh
index 165c426..0ab3308 100644
--- a/src/ob-applypatches.sh
+++ b/src/ob-applypatches.sh
@@ -55,7 +55,10 @@ apply_patches()
main()
{
- ob_set_text_domain 'opkbuild'
+ if ! ob_set_text_domain 'opkbuild'; then
+ printf '%s: Error: Failed to load locale messages\n' >&2
+ return 1
+ fi
ob_init_package '..' || return 1
ob_parse_package_metadata -c '.opkbuild.cache' || return 1