Skip to content

Commit

Permalink
fix: added reject for startwatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Sep 27, 2024
1 parent 2e2f6bb commit 6c157d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/operator/watcherutilnew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ export default abstract class Operator {
try {
await startWatch()
} catch (error) {
const rejected = Promise.reject(error)
console.log('Error in startWatch: ', error)
rejected.catch((v) => {
console.log('Value: ', v)
})
throw error
}
console.log(`watching resource ${id}`)
Expand Down

0 comments on commit 6c157d7

Please sign in to comment.