diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-02 22:15:41 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-02 22:15:41 (EDT) |
commit | e96a4a43214a572b655316135d4dcd82b17c1f28 (patch) | |
tree | 6345a8bb244bd0a54465cc41d95a964165a02e8e /lib | |
parent | c6a2ceb941532bc693fb9f86c250de8b006d5cb7 (diff) |
Print errors and warnings on STDERR.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output.sh | 12 |
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 } |