Commit 65de3110 authored by neil's avatar neil
Browse files

minor, fix error message

parent 150e9c8a
...@@ -104,13 +104,19 @@ _info() { ...@@ -104,13 +104,19 @@ _info() {
_err() { _err() {
_log "$@" _log "$@"
__red "$(_printargs "$@")" >&2 printf -- "[$(date)] " >&2
if [ -z "$2" ] ; then
__red "$1" >&2
else
__red "$1='$2'" >&2
fi
printf "\n" >&2 printf "\n" >&2
return 1 return 1
} }
_usage() { _usage() {
__red "$@" __red "$@" >&2
printf "\n" >&2
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment