Skip to content

Commit 3a072ec

Browse files
committed
Merge pull request #50 from NativeScript/fatme/fix-platform-list
Fix message from platform list command
2 parents 8eb0a7d + 9e8ac77 commit 3a072ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/commands/list-platforms.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ export class ListPlatformsCommand implements ICommand {
99
execute(args: string[]): IFuture<void> {
1010
return (() => {
1111
var availablePlatforms = this.$platformService.getAvailablePlatforms().wait();
12-
this.$logger.out("Available platforms: %s", helpers.formatListOfNames(availablePlatforms));
12+
if(availablePlatforms.length > 0) {
13+
this.$logger.out("Available platforms: %s", helpers.formatListOfNames(availablePlatforms));
14+
} else {
15+
this.$logger.out("No available platforms found.");
16+
}
1317

1418
var message = "No installed platforms found.";
1519
var installedPlatforms = this.$platformService.getInstalledPlatforms().wait();

0 commit comments

Comments
 (0)