summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-03-28 21:09:46 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-03-28 16:09:46 -0400
commitbdc455dd25b4c0d14fd30bc32c07206b2b93a007 (patch)
treef56468128eab8cdccbd010cccf2d37aaf1115a0c /website
parentc25e262b04c15d4de7107cc131de467882e7dcec (diff)
Add Process.stderrOutput() (#1828)
Diffstat (limited to 'website')
-rw-r--r--website/manual.md9
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);
}