From 931ab8f34899cabe293df900d19f470c50537ce6 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck <dieter@plaetinck.be> Date: Sun, 1 Mar 2009 17:59:07 +0100 Subject: fix for undefined die_error + avoid loops --- src/aif.sh | 10 +++++++++- src/core/libs/lib-ui.sh | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/aif.sh b/src/aif.sh index 92467d9..54ed0a7 100755 --- a/src/aif.sh +++ b/src/aif.sh @@ -35,7 +35,15 @@ Available procedures: } -##### TMP functions that we need during early bootstrap but will be overidden with decent functions by libraries ###### +##### TMP functions that we need during early bootstrap but will be overidden with decent functions from libraries ###### + + +# Do not call other functions like debug, notify, .. here because that might cause loops! +die_error () +{ + echo "ERROR: $@" >&2 + exit 2 +} notify () diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 90afeba..76aeecf 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -19,10 +19,10 @@ var_CONSOLEFONT=$CONSOLEFONT # display error message and die +# Do not call other functions like debug, notify, .. here because that might cause loops! die_error () { - debug 'UI' "die_error: ERROR: $@" - notify "ERROR: $@" + echo "ERROR: $@" >&2 exit 2 } -- cgit v1.2.3-54-g00ecf