summaryrefslogtreecommitdiff
path: root/website/manual.md
diff options
context:
space:
mode:
Diffstat (limited to 'website/manual.md')
-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);
}