From 9e8ac7765160161b02eb9a97d6fc66edec508aba Mon Sep 17 00:00:00 2001 From: Fatme Havaluova Date: Thu, 14 Aug 2014 19:00:55 +0300 Subject: [PATCH] Fix message from platform list command --- lib/commands/list-platforms.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/commands/list-platforms.ts b/lib/commands/list-platforms.ts index fcead433ad..a532c02b5a 100644 --- a/lib/commands/list-platforms.ts +++ b/lib/commands/list-platforms.ts @@ -9,7 +9,11 @@ export class ListPlatformsCommand implements ICommand { execute(args: string[]): IFuture { return (() => { var availablePlatforms = this.$platformService.getAvailablePlatforms().wait(); - this.$logger.out("Available platforms: %s", helpers.formatListOfNames(availablePlatforms)); + if(availablePlatforms.length > 0) { + this.$logger.out("Available platforms: %s", helpers.formatListOfNames(availablePlatforms)); + } else { + this.$logger.out("No available platforms found."); + } var message = "No installed platforms found."; var installedPlatforms = this.$platformService.getInstalledPlatforms().wait();