Skip to content

Commit c6ea3d6

Browse files
Trottaddaleax
authored andcommitted
doc: make minor improvements to paragraph in child_process.md
Use shorter and more direct phrasing. PR-URL: #34063 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
1 parent 21b0132 commit c6ea3d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/child_process.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ metacharacters may be used to trigger arbitrary command execution.**
194194
If a `callback` function is provided, it is called with the arguments
195195
`(error, stdout, stderr)`. On success, `error` will be `null`. On error,
196196
`error` will be an instance of [`Error`][]. The `error.code` property will be
197-
the exit code of the child process while `error.signal` will be set to the
198-
signal that terminated the process. Any exit code other than `0` is considered
199-
to be an error.
197+
the exit code of the process. By convention, any exit code other than `0`
198+
indicates an error. `error.signal` will be the signal that terminated the
199+
process.
200200

201201
The `stdout` and `stderr` arguments passed to the callback will contain the
202202
stdout and stderr output of the child process. By default, Node.js will decode

0 commit comments

Comments
 (0)