Skip to content

Commit

Permalink
doc: abort controller emits error in child process
Browse files Browse the repository at this point in the history
Fixes: #46036
PR-URL: #46072
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
debadree25 authored and juanarbol committed Jan 31, 2023
1 parent 1ec14c2 commit 3968698
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1186,9 +1186,10 @@ property is `false`.

The `'error'` event is emitted whenever:

1. The process could not be spawned, or
2. The process could not be killed, or
3. Sending a message to the child process failed.
* The process could not be spawned.
* The process could not be killed.
* Sending a message to the child process failed.
* The child process was aborted via the `signal` option.

The `'exit'` event may or may not fire after an error has occurred. When
listening to both the `'exit'` and `'error'` events, guard
Expand Down

0 comments on commit 3968698

Please sign in to comment.