[lib] error event emits {Error} instead of {String}.