diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-03-28 21:09:46 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-28 16:09:46 -0400 |
commit | bdc455dd25b4c0d14fd30bc32c07206b2b93a007 (patch) | |
tree | f56468128eab8cdccbd010cccf2d37aaf1115a0c /website | |
parent | c25e262b04c15d4de7107cc131de467882e7dcec (diff) |
Add Process.stderrOutput() (#1828)
Diffstat (limited to 'website')
-rw-r--r-- | website/manual.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/website/manual.md b/website/manual.md index f665d192d..738d84185 100644 --- a/website/manual.md +++ b/website/manual.md @@ -398,8 +398,13 @@ async function main() { const { code } = await p.status(); - const rawOutput = await p.output(); - Deno.stdout.write(rawOutput); + if (code === 0) { + const rawOutput = await p.output(); + Deno.stdout.write(rawOutput); + } else { + const rawError = await p.stderrOutput(); + Deno.stdout.write(rawError); + } Deno.exit(code); } |