Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 5d001c5

Browse files
committed
fix(client): log activation error
This logs errors that occur during activation instead of discarding them (and ending up in ActivateFailed state with no explanation).
1 parent 2048ab9 commit 5d001c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/client.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ export class Client implements Unsubscribable {
165165
connection.listen()
166166
return this.initialize(connection)
167167
})
168-
.then(null, () => {
168+
.then(null, err => {
169+
console.error(err)
170+
169171
// Only update state if it pertains to the same connection we started with.
170172
if (activateConnection === this.connection && this._state.value !== ClientState.Stopped) {
171173
this._state.next(ClientState.ActivateFailed)

0 commit comments

Comments
 (0)