diff --git a/doc/api/readline.md b/doc/api/readline.md index 580872b98242a8..02e56e4c6a322b 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -102,6 +102,17 @@ The listener function is called without passing any arguments. The `InterfaceConstructor` instance is finished once the `'close'` event is emitted. +### Event: `'error'` + + + +The `'error'` event is emitted when an error occurs on the `input` stream +associated with the `node:readline` `Interface`. + +The listener function is called with an `Error` object passed as the single argument. + ### Event: `'line'`