@@ -58,8 +58,8 @@ export function resolvePackages(pkg: string[]): Function | void {
5858 require . resolve ( absolutePath ) ;
5959 packageLocations . push ( absolutePath ) ;
6060 } 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" ) ;
6363 console . error ( chalk . bold . red ( err ) ) ;
6464 process . exitCode = 1 ;
6565 }
@@ -75,16 +75,16 @@ export function resolvePackages(pkg: string[]): Function | void {
7575 const globalPath : string = getPathToGlobalPackages ( ) ;
7676 packageLocations . push ( path . resolve ( globalPath , addon ) ) ;
7777 } 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" ) ;
8181 console . error ( chalk . bold . red ( err ) ) ;
8282 process . exitCode = 1 ;
8383 }
8484 } )
8585 . 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" ) ;
8888 console . error ( chalk . bold . red ( err ) ) ;
8989 process . exitCode = 1 ;
9090 } )
0 commit comments