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

Commit

Permalink
Fix: log core error replies
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Apr 30, 2018
1 parent a843d6d commit 7e4b9c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let config: Config = {
mos: {
self: {

mosID: 'seff.tv.automation',
mosID: 'sofie.tv.automation',
acceptsConnections: true, // default:true
// accepsConnectionsFrom: ['127.0.0.1'],
profiles: {
Expand All @@ -40,6 +40,7 @@ let config: Config = {
}
}
console.log('Core: ' + config.core.host + ':' + config.core.port)
console.log('Mos id: ' + config.mos.self.mosID)
config.mos.devices.forEach((device) => {
if (device.primary) console.log('Mos Primary: ' + device.primary.host)
if (device.secondary) console.log('Mos Secondary: ' + device.secondary.host)
Expand Down
3 changes: 2 additions & 1 deletion src/mosHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class MosHandler {
// Called when all connection has been made
})
}
private _getROAck (roId: MosString128, p: Promise<any>) {
private _getROAck (roId: MosString128, p: Promise<IMOSROAck>) {

return p.then(() => {
let roAck: IMOSROAck = {
Expand All @@ -214,6 +214,7 @@ export class MosHandler {
return roAck
})
.catch((err) => {
console.log('Error', err)
let roAck: IMOSROAck = {
ID: roId,
Status: new MosString128('Error: ' + err.toString()),
Expand Down

0 comments on commit 7e4b9c5

Please sign in to comment.