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) {
59
59
}
60
60
if ( err ) {
61
61
var p = require ( 'process' )
62
- console . log ( err )
62
+ console . error ( err )
63
63
program . outputHelp ( )
64
64
p . exit ( 2 )
65
65
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ tlib.test('help', (t) => {
26
26
27
27
tlib . test ( 'no command fails' , ( t ) => {
28
28
const cmd = tlib . spawn ( t , './bin/gapps' )
29
- cmd . stdout . match ( 'No command specified\n' )
29
+ cmd . stderr . match ( 'No command specified\n' )
30
30
cmd . stdout . match ( / U s a g e : / )
31
31
if ( tape_spawn_fixed )
32
32
cmd . fails ( )
@@ -35,7 +35,7 @@ tlib.test('no command fails', (t) => {
35
35
36
36
tlib . test ( 'bad commands fail' , ( t ) => {
37
37
const cmd = tlib . spawn ( t , './bin/gapps rubbish' )
38
- cmd . stdout . match ( 'Bad command specified\n' )
38
+ cmd . stderr . match ( 'Bad command specified\n' )
39
39
cmd . stdout . match ( / U s a g e : / )
40
40
if ( tape_spawn_fixed )
41
41
cmd . fails ( )
You can’t perform that action at this time.
0 commit comments