File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
"use strict" ;
3
3
4
4
export class PrepareCommand implements ICommand {
5
- constructor ( private $platformService : IPlatformService ,
5
+ constructor ( private $errors : IErrors ,
6
+ private $platformService : IPlatformService ,
6
7
private $platformCommandParameter : ICommandParameter ) { }
7
8
8
9
execute ( args : string [ ] ) : IFuture < void > {
9
10
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
+ }
11
14
} ) . future < void > ( ) ( ) ;
12
15
}
13
16
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export class PlatformService implements IPlatformService {
187
187
parser . parseFromString ( fileContents , "text/xml" ) ;
188
188
xmlHasErrors = xmlHasErrors || hasErrors ;
189
189
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 ) ;
191
191
}
192
192
} ) ;
193
193
return ! xmlHasErrors ;
You can’t perform that action at this time.
0 commit comments