Skip to content

Commit

Permalink
fix(bin): process.write -> console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 10, 2022
1 parent e00100c commit 5e10656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-cloudflare/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const argv = require('mri')(process.argv.slice(2), {
};

function exit(msg: string, code = 1): never {
if (code) process.stderr.write(msg + '\n');
else process.stdout.write(msg + '\n');
if (code) console.error('\n' + msg + '\n');
else console.log('\n' + msg + '\n');
process.exit(code);
}

Expand Down

0 comments on commit 5e10656

Please sign in to comment.