summaryrefslogtreecommitdiffstats
path: root/lib/output.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output.sh')
-rw-r--r--lib/output.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/output.sh b/lib/output.sh
index 4fe45f1..9d08759 100644
--- a/lib/output.sh
+++ b/lib/output.sh
@@ -32,7 +32,7 @@
ob_error()
{
local format="${1}"
- shift 1
+ shift 1 || _ob_abort
printf "$(_get_msg 'output_error_format')\n" "${0##*/}" "${@}" >&2
@@ -52,7 +52,7 @@ ob_error()
ob_warn()
{
local format="${1}"
- shift 1
+ shift 1 || _ob_abort
printf "$(_get_msg 'output_warning_format')\n" "${0##*/}" "${@}" >&2
@@ -72,7 +72,7 @@ ob_warn()
ob_info()
{
local format="${1}"
- shift 1
+ shift 1 || _ob_abort
printf "$(_get_msg 'output_info_format')\n" "${0##*/}" "${@}" >&2
@@ -82,7 +82,7 @@ ob_info()
_ob_error_msg()
{
local msgid="${1}"
- shift 1
+ shift 1 || _ob_abort
ob_error "$(_ob_get_msg "${msgid}")" "${@}"
@@ -92,7 +92,7 @@ _ob_error_msg()
_ob_warn_msg()
{
local msgid="${1}"
- shift 1
+ shift 1 || _ob_abort
ob_warn "$(_ob_get_msg "${msgid}")" "${@}"
@@ -102,7 +102,7 @@ _ob_warn_msg()
_ob_info_msg()
{
local msgid="${1}"
- shift 1
+ shift 1 || _ob_abort
ob_info "$(_ob_get_msg "${msgid}")" "${@}"