mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 17:52:40 +00:00
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:
parent
e888ef5a60
commit
ad6e1a9d59
@ -6,10 +6,15 @@
|
||||
|
||||
set -e
|
||||
|
||||
die()
|
||||
error()
|
||||
{
|
||||
local msg="$*"
|
||||
echo "ERROR: ${msg}" >&2
|
||||
}
|
||||
|
||||
die()
|
||||
{
|
||||
error "$*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user