From e96a4a43214a572b655316135d4dcd82b17c1f28 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Oct 2012 22:15:41 -0400 Subject: Print errors and warnings on STDERR. --- (limited to 'lib') 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 } -- cgit v0.9.1