Skip to content

Commit e8c8e98

Browse files
author
Tsvetan Raikov
committed
Fixed: Livesync does not inform the user if no platforms are added but kills the process
1 parent 6bfce95 commit e8c8e98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/services/livesync/livesync-service.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ class LiveSyncService implements ILiveSyncService {
6262
liveSyncData.push(this.prepareLiveSyncData(installedPlatform));
6363
}
6464
}
65-
65+
if (liveSyncData.length === 0) {
66+
this.$errors.fail("There are no platforms installed in this project. Please specify platform or install one by using `tns platform add` command!");
67+
}
6668
this._isInitialized = true; // If we want before-prepare hooks to work properly, this should be set after preparePlatform function
6769

6870
this.liveSyncCore(liveSyncData).wait();

0 commit comments

Comments
 (0)