index: emit an "error" event when data is written with no parsing function is in place