Fix 'error' event (emit an Error rather than a String, upps)