scripts: implement error function

Implement function to log errors without exit.

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2019-03-25 08:19:13 -06:00
parent e888ef5a60
commit ad6e1a9d59

View File

@ -6,10 +6,15 @@
set -e
die()
error()
{
local msg="$*"
echo "ERROR: ${msg}" >&2
}
die()
{
error "$*"
exit 1
}