From fe8a5c51fa1aa5ea9d86ce71e73d934d93368277 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 2 Jan 2017 23:03:07 +0100 Subject: [PATCH] TrapError should output messages to stderr --- dev/ofunctions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index be2287e..6f2effc 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -3,7 +3,7 @@ #### OFUNCTIONS MINI SUBSET #### _OFUNCTIONS_VERSION=2.1-RC1+dev -_OFUNCTIONS_BUILD=2016122701 +_OFUNCTIONS_BUILD=2017010201 #### _OFUNCTIONS_BOOTSTRAP SUBSET #### _OFUNCTIONS_BOOTSTRAP=true #### _OFUNCTIONS_BOOTSTRAP SUBSET END #### @@ -586,7 +586,7 @@ function TrapError { local code="${2:-1}" if [ $_LOGGER_SILENT == false ]; then - echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m" + (>&2 echo -e "\e[45m/!\ ERROR in ${job}: Near line ${line}, exit code ${code}\e[0m") fi } #### TrapError SUBSET END ####