diff --git a/doc/api/child_process.md b/doc/api/child_process.md index a5579451a7325c..108efb91cef7cd 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -741,8 +741,8 @@ If the child process intercepts and handles the `SIGTERM` signal and does not exit, the parent process will still wait until the child process has exited. -If the process times out or has a non-zero exit code, this method ***will*** -throw an [`Error`][] that will include the full result of the underlying +If the process times out or has a non-zero exit code, this method will throw an +[`Error`][] that will include the full result of the underlying [`child_process.spawnSync()`][]. **If the `shell` option is enabled, do not pass unsanitized user input to this @@ -802,8 +802,8 @@ completely exited. *Note that if the child process intercepts and handles the `SIGTERM` signal and doesn't exit, the parent process will wait until the child process has exited.* -If the process times out or has a non-zero exit code, this method ***will*** -throw. The [`Error`][] object will contain the entire result from +If the process times out or has a non-zero exit code, this method will throw. +The [`Error`][] object will contain the entire result from [`child_process.spawnSync()`][]. **Never pass unsanitized user input to this function. Any input containing shell