diff options
author | Rich Trott <rtrott@gmail.com> | 2020-06-26 07:00:24 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-06-29 07:47:33 +0300 |
commit | 90d5f35f7abc06b2e4f6c0e05d293183360af3f7 (patch) | |
tree | 8f2e0ad463c95247ca1dd87d6d634de84ea3b8d7 /doc/api/child_process.md | |
parent | 95eecd58b39b7dbedfce509b4a38d0c18e22f7cb (diff) |
doc: make minor improvements to paragraph in child_process.md
Use shorter and more direct phrasing.
PR-URL: https://github.com/nodejs/node/pull/34063
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'doc/api/child_process.md')
-rw-r--r-- | doc/api/child_process.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 1c1ea3b5547..0d00a2a2433 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -194,9 +194,9 @@ metacharacters may be used to trigger arbitrary command execution.** If a `callback` function is provided, it is called with the arguments `(error, stdout, stderr)`. On success, `error` will be `null`. On error, `error` will be an instance of [`Error`][]. The `error.code` property will be -the exit code of the child process while `error.signal` will be set to the -signal that terminated the process. Any exit code other than `0` is considered -to be an error. +the exit code of the process. By convention, any exit code other than `0` +indicates an error. `error.signal` will be the signal that terminated the +process. The `stdout` and `stderr` arguments passed to the callback will contain the stdout and stderr output of the child process. By default, Node.js will decode |