Skip to content

Commit 9e8ac77

Browse files
Fatme HavaluovaFatme Havaluova
authored andcommitted
Fix message from platform list command
1 parent 8eb0a7d commit 9e8ac77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/commands/list-platforms.ts

Lines changed: 5 additions & 1 deletion
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)