From 65de3110a9ccc210036ec48e34225b8d2028eec0 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 28 Sep 2016 13:13:08 +0800 Subject: [PATCH] minor, fix error message --- acme.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index e748a063..5f4f2336 100755 --- a/acme.sh +++ b/acme.sh @@ -104,13 +104,19 @@ _info() { _err() { _log "$@" - __red "$(_printargs "$@")" >&2 + printf -- "[$(date)] " >&2 + if [ -z "$2" ] ; then + __red "$1" >&2 + else + __red "$1='$2'" >&2 + fi printf "\n" >&2 return 1 } _usage() { - __red "$@" + __red "$@" >&2 + printf "\n" >&2 }