While AkosLukacs has confirmed that I will never be able to catch the exception, I'll see that come in handy next time I'm debugging Espruino modules--thanks 👍.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
you can use this statement to include the module into you code
https://www.espruino.com/Reference#l_Modules_addCached
and than some console.log() statements to nail down what’s going wrong.