summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/output.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/output.sh b/lib/output.sh
index 1f6a565..6f346fe 100644
--- a/lib/output.sh
+++ b/lib/output.sh
@@ -27,9 +27,9 @@ ob_use locale
ob_error()
{
- printf '%s: Error: ' "${0##*/}"
- printf "${@}"
- printf '\n'
+ printf '%s: Error: ' "${0##*/}" >&2
+ printf "${@}" >&2
+ printf '\n' >&2
exit 1
}
@@ -40,9 +40,9 @@ ob_warn()
return 125
fi
- printf '%s: Warning: ' "${0##*/}"
- printf "${@}"
- printf '\n'
+ printf '%s: Warning: ' "${0##*/}" >&2
+ printf "${@}" >&2
+ printf '\n' >&2
return 0
}