Skip to content

Commit

Permalink
fix: simpler error p3
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Sep 30, 2024
1 parent 660d84f commit 9bf877b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/operator/watcherutilnew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,8 @@ export default abstract class Operator {
}),
(err) => {
if (err) {
console.log('ERROR: ', err)
if (err.code === 'ECONNRESET') {
console.log(`watch on resource ${id} failed: Watcher disconnected`)
console.log(`watch on resource ${id} timed out: Watcher disconnected`)
} else {
console.log(`watch on resource ${id} failed: ${this.errorToJson(err)}`)
}
Expand Down

0 comments on commit 9bf877b

Please sign in to comment.