File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -788,9 +788,13 @@ export class PlatformService extends EventEmitter implements IPlatformService {
788788
789789 private getLatestApplicationPackage ( buildOutputPath : string , validBuildOutputData : IValidBuildOutputData ) : IApplicationPackage {
790790 let packages = this . getApplicationPackages ( buildOutputPath , validBuildOutputData ) ;
791+ const packageExtName = path . extname ( validBuildOutputData . packageNames [ 0 ] ) ;
791792 if ( packages . length === 0 ) {
792- const packageExtName = path . extname ( validBuildOutputData . packageNames [ 0 ] ) ;
793- this . $errors . fail ( "No %s found in %s directory" , packageExtName , buildOutputPath ) ;
793+ this . $errors . fail ( `No ${ packageExtName } found in ${ buildOutputPath } directory.` ) ;
794+ }
795+
796+ if ( packages . length > 1 ) {
797+ this . $logger . warn ( `More than one ${ packageExtName } found in ${ buildOutputPath } directory. Using the last one produced from build.` ) ;
794798 }
795799
796800 packages = _ . sortBy ( packages , pkg => pkg . time ) . reverse ( ) ; // We need to reverse because sortBy always sorts in ascending order
You can’t perform that action at this time.
0 commit comments