Logger "Entering function [$callerName].""PARANOIA_DEBUG"
if ! ([$countedArguments -ge $minArgs]&&[$countedArguments -le $maxArgs]);then
Logger "Function $functionName may have inconsistent number of arguments. Expected min: $minArgs, max: $maxArgs, count: $countedArguments, bash seen: $numberOfGivenArguments. see log file.""ERROR"
Logger "Function $callerName may have inconsistent number of arguments. Expected min: $minArgs, max: $maxArgs, count: $countedArguments, bash seen: $numberOfGivenArguments.""ERROR"
Logger "$callerName arguments: $argList""ERROR"
else
if[ ! -z "$argList"];then
@ -2057,7 +2052,7 @@ function TrapError {
localcode="${2:-1}"
if[$_LOGGER_SILENT==false];then
echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m"
(>&2echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m")
fi
}
function IsInteger {
@ -2392,7 +2387,7 @@ function TrapError {
localcode="${2:-1}"
if[$_LOGGER_SILENT==false];then
echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m"
(>&2echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m")
fi
}
## Modified version of http://stackoverflow.com/a/8574392
@ -3246,7 +3241,7 @@ function TrapError {
localcode="${2:-1}"
if[$_LOGGER_SILENT==false];then
echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m"
(>&2echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m")