More descriptive Scripting Terminal messages

Right now, I’m getting messages like this:

*** main.lua:283: attempt to index field 'selected_device' (a nil value)  
*** stack traceback:  
*** main.lua:283: in function <281><br>

Really annoying since I manage 30+ tools of my own and then about 20 or more by com.renoise, ledger, afta8, kmaki, ...<br>
It's a really generic error message that I can work with but mentioning the tool / dir involved would greatly improve this workflow.</281>

That would indeed help for those tools that simply run in the background unnoticed.