From e8c8e9861684b8f62f7a92cd3ff3e4c465b3551d Mon Sep 17 00:00:00 2001 From: Tsvetan Raikov Date: Wed, 27 Jul 2016 16:41:04 +0300 Subject: [PATCH] Fixed: Livesync does not inform the user if no platforms are added but kills the process --- lib/services/livesync/livesync-service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/services/livesync/livesync-service.ts b/lib/services/livesync/livesync-service.ts index fad61196b2..77b4d0a722 100644 --- a/lib/services/livesync/livesync-service.ts +++ b/lib/services/livesync/livesync-service.ts @@ -62,7 +62,9 @@ class LiveSyncService implements ILiveSyncService { liveSyncData.push(this.prepareLiveSyncData(installedPlatform)); } } - + if (liveSyncData.length === 0) { + this.$errors.fail("There are no platforms installed in this project. Please specify platform or install one by using `tns platform add` command!"); + } this._isInitialized = true; // If we want before-prepare hooks to work properly, this should be set after preparePlatform function this.liveSyncCore(liveSyncData).wait();