common-helpers.inc/EvalEx: Output command which caused the error

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2018-10-05 14:36:47 +02:00
parent 603d249fe3
commit ba59349068

View File

@@ -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
}