enhanced: throw error if event is 'error'
Release 1.4.0