Commit d6982534 by Eric Coissac

Trace error in command excecuted during trap function

parent ffd86499
......@@ -56,7 +56,8 @@ __LECABASH__trap_function__() {
if [[ $(stacksize $stackname) > 0 ]]; then
while popvalue "$stackname" cmd ; do
logdebug "Running ${signal} command : $cmd"
eval "$cmd"
eval "$cmd" \
|| logdebug "Command: '$cmd' generates an error"
done
logdebug "Commands registered on signal $signal run."
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment