@@ -58,8 +58,8 @@ export function resolvePackages(pkg: string[]): Function | void {
58
58
require . resolve ( absolutePath ) ;
59
59
packageLocations . push ( absolutePath ) ;
60
60
} catch ( err ) {
61
- console . log ( `Cannot find a generator at ${ absolutePath } .` ) ;
62
- console . log ( "\nReason:\n" ) ;
61
+ console . error ( `Cannot find a generator at ${ absolutePath } .` ) ;
62
+ console . error ( "\nReason:\n" ) ;
63
63
console . error ( chalk . bold . red ( err ) ) ;
64
64
process . exitCode = 1 ;
65
65
}
@@ -75,16 +75,16 @@ export function resolvePackages(pkg: string[]): Function | void {
75
75
const globalPath : string = getPathToGlobalPackages ( ) ;
76
76
packageLocations . push ( path . resolve ( globalPath , addon ) ) ;
77
77
} catch ( err ) {
78
- console . log ( "Package wasn't validated correctly.." ) ;
79
- console . log ( "Submit an issue for" , pkg , "if this persists" ) ;
80
- console . log ( "\nReason: \n" ) ;
78
+ console . error ( "Package wasn't validated correctly.." ) ;
79
+ console . error ( "Submit an issue for" , pkg , "if this persists" ) ;
80
+ console . error ( "\nReason: \n" ) ;
81
81
console . error ( chalk . bold . red ( err ) ) ;
82
82
process . exitCode = 1 ;
83
83
}
84
84
} )
85
85
. catch ( ( err : string ) => {
86
- console . log ( "Package couldn't be installed, aborting.." ) ;
87
- console . log ( "\nReason: \n" ) ;
86
+ console . error ( "Package couldn't be installed, aborting.." ) ;
87
+ console . error ( "\nReason: \n" ) ;
88
88
console . error ( chalk . bold . red ( err ) ) ;
89
89
process . exitCode = 1 ;
90
90
} )
0 commit comments