[lib] Use event name 'error' instead of 'err'.