From ba59349068f70283b198aed9a74953d769abc7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 5 Oct 2018 14:36:47 +0200 Subject: [PATCH] common-helpers.inc/EvalEx: Output command which caused the error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- scripts/include/common-helpers.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/include/common-helpers.inc b/scripts/include/common-helpers.inc index 8ff7e75..d5612bc 100644 --- a/scripts/include/common-helpers.inc +++ b/scripts/include/common-helpers.inc @@ -60,10 +60,11 @@ EvalEx() { fi else if [ -n "${4}" ] ; then - ErrorOut "${4}" + ErrorText="${4}" else - ErrorOut "An error occured!" + ErrorText="An error occured!" fi + ErrorOut "${ErrorText}\nCommand was: '${1}'" fi }