Skip to content

Commit

Permalink
fixed fs watch failing
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Dec 17, 2024
1 parent 945fb8b commit b8d6da3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion file/file.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ namespace $ {
},
} )

watcher.on( 'all' , ( type , path )=> {
watcher
.on( 'all' , ( type , path )=> {

if( path instanceof Error ) {
this.$.$mol_fail_log( path )
Expand All @@ -84,6 +85,7 @@ namespace $ {
}

} )
.on( 'error' , $mol_fail_log )

return {
destructor() {
Expand Down

0 comments on commit b8d6da3

Please sign in to comment.