While I can potentially use pcall or xpcall to trap the error and dump like this...
Code: Select all
serpent.block( tank, {comment = false, numformat = '%1.8g' } )
As the game knows which entity, item, or whatever chunk of data.raw it's processing when the error occurs, it could potentially just dump that specific chunk of data.raw to the log file to make debugging much easier.