|
|
|
@ -164,6 +164,7 @@ check_for_error() {
|
|
|
|
|
# and function varsdump ? _msg="$_msg \n $(declare -p | grep -v " _")"
|
|
|
|
|
local _fpath="${FUNCNAME[*]:1:2}()"
|
|
|
|
|
_fpath=" --${_fpath// /()<-}"
|
|
|
|
|
! ((debug)) && _fpath=""
|
|
|
|
|
echo -e "$(date +%D\ %T) ERROR ${_msg}${_fpath}" >> "${LOGFILE}"
|
|
|
|
|
if [[ "${_function_menu}" != "SKIP" ]]; then
|
|
|
|
|
DIALOG " $_ErrTitle " --msgbox "\n${_msg}\n" 0 0
|
|
|
|
@ -172,7 +173,8 @@ check_for_error() {
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
# add $FUNCNAME limit to 20 max for control if recursive
|
|
|
|
|
echo -e "$(date +%D\ %T) ${_msg} --${FUNCNAME[*]:1:20}" >> "${LOGFILE}"
|
|
|
|
|
((debug)) && _msg="${_msg} --${FUNCNAME[*]:1:20}"
|
|
|
|
|
echo -e "$(date +%D\ %T) ${_msg}" >> "${LOGFILE}"
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|