I got the 'file too big' error again and unfortunately, since it wasn't handled, it led to the file system getting corrupted again. The only way to recover is require("Storage").eraseAll() and start from scratch.
I'll put in some defensive code to handle the file too big error and try a file rollover until require("Storage").getFree() returns a lowish number.
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 got the 'file too big' error again and unfortunately, since it wasn't handled, it led to the file system getting corrupted again. The only way to recover is
require("Storage").eraseAll()
and start from scratch.I'll put in some defensive code to handle the file too big error and try a file rollover until
require("Storage").getFree()
returns a lowish number.