Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
fix: added missing core onError handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Aug 14, 2018
1 parent 20ff505 commit 805e305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export class CoreMosDeviceHandler {

this._coreParentHandler.logger.info('new CoreMosDeviceHandler ' + mosDevice.idPrimary)
this.core = new CoreConnection(parent.getCoreConnectionOptions('MOS: ' + mosDevice.idPrimary, mosDevice.idPrimary, false))
this.core.onError((err) => {
this._coreParentHandler.logger.error('Core Error: ' + (err.message || err.toString() || err))
})
}
init (): Promise<void> {
return this.core.init(this._coreParentHandler.core)
Expand Down

0 comments on commit 805e305

Please sign in to comment.