I've got the following code running, deliberately without having an SD card in the slot, but the catch statement never seems to execute. Am I being stupid?
I see ERROR: Unable to mount media : NOT_READY on the console but not caught an error. If I remove all my console.log, I still get ERROR: Unable to mount media : NOT_READY so I'm assuming it is being logged higher up the stack?
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.
I've got the following code running, deliberately without having an SD card in the slot, but the catch statement never seems to execute. Am I being stupid?
I see
ERROR: Unable to mount media : NOT_READY
on the console but notcaught an error
. If I remove all myconsole.log
, I still getERROR: Unable to mount media : NOT_READY
so I'm assuming it is being logged higher up the stack?