You could if you like go through and add error code to each event/alias that you think may be the source of the error. Example:

alias test {
<commands>
}

alias test {
<commands>
:error
echo -s Error: $error $scriptline
}

By using $scriptline you can figure out which line is actually echoing the error code. From there at least you can narrow it down to one routine. Good luck.


-
MIMP