emit error event
documented error event
1.0.0