Skip to content
Permalink
Browse files

Thrown errors in the cli now print to stderr. Beforehand, thrown errr…

…os caused the cli program to quit without printing the error message.
  • Loading branch information...
pharaxe committed Feb 19, 2018
1 parent a7ce20e commit 249b72c1d41f759b87e0fde05b124c01d543be43
Showing with 4 additions and 1 deletion.
  1. +4 −1 packages/angular-playground/cli/index.ts
@@ -1,3 +1,6 @@
#!/usr/bin/env node
import { run } from './src/run';
run();
run().catch(function(err) {
process.stderr.write(err.message + "\n");
process.exit(err.code);
});

0 comments on commit 249b72c

Please sign in to comment.
You can’t perform that action at this time.