mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
[manual] fix example (#2307)
This commit is contained in:
parent
d9cdc6788b
commit
07886a03cc
1 changed files with 2 additions and 2 deletions
|
@ -409,10 +409,10 @@ async function main() {
|
|||
|
||||
if (code === 0) {
|
||||
const rawOutput = await p.output();
|
||||
Deno.stdout.write(rawOutput);
|
||||
await Deno.stdout.write(rawOutput);
|
||||
} else {
|
||||
const rawError = await p.stderrOutput();
|
||||
const errorString = new TextDecoder().decode(rawError);
|
||||
const errorString = decoder.decode(rawError);
|
||||
console.log(errorString);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue