Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdadams committed Dec 20, 2024
1 parent 47db9d5 commit d1956d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = {
}

self.log('info', `Websocket Closed. Code: ${code}, Reason: ${reason || 'No reason provided.'}`)
self.updateStatus(InstanceStatus.ConnectionFailure, `Failed to connect to SCTE 104 Proxy.`)
self.updateStatus(InstanceStatus.ConnectionFailure, `Failed to communicate with SCTE 104 Proxy.`)

self.WS = undefined // Ensure WS is set to null when closed
delete self.WS
Expand Down Expand Up @@ -188,7 +188,7 @@ module.exports = {
let data = undefined
if (!response.ok) {
self.log('error', `HTTP Error: ${response.status} ${response.statusText}`)
self.updateStatus(InstanceStatus.ConnectionFailure, `Failed to connect to SCTE 104 Proxy.`)
self.updateStatus(InstanceStatus.ConnectionFailure, `Failed to communicate with SCTE 104 Proxy.`)
} else {
data = await response.json()
self.updateStatus(InstanceStatus.Ok) //clear any previous connection errors
Expand All @@ -197,7 +197,7 @@ module.exports = {
return data
} catch (error) {
self.log('error', `REST Send Error: ${error}`)
self.updateStatus(InstanceStatus.ConnectionFailure, `Failed to connect to SCTE 104 Proxy.`)
self.updateStatus(InstanceStatus.ConnectionFailure, `Failed to communicate with SCTE 104 Proxy.`)
}
},

Expand Down

0 comments on commit d1956d5

Please sign in to comment.