Skip to content

Commit 4db5bb3

Browse files
committed
chore: emit correctly PREVIEW_APP_LIVE_SYNC_ERROR
1 parent 89dd3aa commit 4db5bb3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/services/livesync/playground/preview-app-livesync-service.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ export class PreviewAppLiveSyncService extends EventEmitter implements IPreviewA
4242
} finally {
4343
this.deviceInitializationPromise[device.id] = null;
4444
}
45-
} catch (err) {
46-
this.$logger.error(err);
47-
this.emit(PreviewAppLiveSyncEvents.PREVIEW_APP_LIVE_SYNC_ERROR, err);
45+
} catch (error) {
46+
this.$logger.error(error);
47+
this.emit(PreviewAppLiveSyncEvents.PREVIEW_APP_LIVE_SYNC_ERROR, {
48+
error,
49+
data,
50+
platform: device.platform,
51+
deviceId: device.id
52+
});
4853
}
4954
});
5055
}

0 commit comments

Comments
 (0)