diff --git a/src/Net/Net.ts b/src/Net/Net.ts index 3f7dfc592..f81bb649b 100644 --- a/src/Net/Net.ts +++ b/src/Net/Net.ts @@ -305,9 +305,9 @@ export class Net { this.persistedDataBuffer.length = 0 return Observable.from(asyncQueue).concatAll().do({ - error: async (err: Observable) => { - const errObj = await err.toPromise() - SDKLogger.error(errObj.message) + error: (err) => { + const errmsg = err && err.message || String(err) + SDKLogger.error(errmsg) } }) }