Make deprecated() output to stderr

So that it can be used by functions like _determine_config_server,
which is used like RESULT=$(_determine_config_server).

Change-Id: Ia4e641c5529b95ada30ae662221f370bc7fa88a7
This commit is contained in:
YAMAMOTO Takashi 2016-12-01 22:29:12 +09:00
parent c74315e055
commit 8b1bbd690c

View File

@ -216,7 +216,7 @@ function die_if_not_set {
function deprecated {
local text=$1
DEPRECATED_TEXT+="\n$text"
echo "WARNING: $text"
echo "WARNING: $text" >&2
}
# Prints line number and "message" in error format