File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22"use strict" ;
33
44export class PrepareCommand implements ICommand {
5- constructor ( private $platformService : IPlatformService ,
5+ constructor ( private $errors : IErrors ,
6+ private $platformService : IPlatformService ,
67 private $platformCommandParameter : ICommandParameter ) { }
78
89 execute ( args : string [ ] ) : IFuture < void > {
910 return ( ( ) => {
10- this . $platformService . preparePlatform ( args [ 0 ] ) ;
11+ if ( ! this . $platformService . preparePlatform ( args [ 0 ] ) . wait ( ) ) {
12+ this . $errors . failWithoutHelp ( "Unable to prepare the project." ) ;
13+ }
1114 } ) . future < void > ( ) ( ) ;
1215 }
1316
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export class PlatformService implements IPlatformService {
187187 parser . parseFromString ( fileContents , "text/xml" ) ;
188188 xmlHasErrors = xmlHasErrors || hasErrors ;
189189 if ( xmlHasErrors ) {
190- this . $logger . out ( "Error: " . red . bold + ` ${ file } has syntax errors.` ) ;
190+ this . $logger . out ( "Error: " . red . bold + file + " has syntax errors." . red . bold ) ;
191191 }
192192 } ) ;
193193 return ! xmlHasErrors ;
You can’t perform that action at this time.
0 commit comments