Ah nice, will do that!
Notes:
I found this thread and this thread about trap
there is also a call::error according this thread
call::error
In my case, the way I coded the functions - for good and bad - both probably do the job.