File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if (program.args.length == 0) {
5959}
6060if ( err ) {
6161 var p = require ( 'process' )
62- console . log ( err )
62+ console . error ( err )
6363 program . outputHelp ( )
6464 p . exit ( 2 )
6565}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ tlib.test('help', (t) => {
2626
2727tlib . test ( 'no command fails' , ( t ) => {
2828 const cmd = tlib . spawn ( t , './bin/gapps' )
29- cmd . stdout . match ( 'No command specified\n' )
29+ cmd . stderr . match ( 'No command specified\n' )
3030 cmd . stdout . match ( / U s a g e : / )
3131 if ( tape_spawn_fixed )
3232 cmd . fails ( )
@@ -35,7 +35,7 @@ tlib.test('no command fails', (t) => {
3535
3636tlib . test ( 'bad commands fail' , ( t ) => {
3737 const cmd = tlib . spawn ( t , './bin/gapps rubbish' )
38- cmd . stdout . match ( 'Bad command specified\n' )
38+ cmd . stderr . match ( 'Bad command specified\n' )
3939 cmd . stdout . match ( / U s a g e : / )
4040 if ( tape_spawn_fixed )
4141 cmd . fails ( )
You can’t perform that action at this time.
0 commit comments