replace "error event" with "error thrown"