From b8d6da3ad7eba70da506521f8f7bd1d9353fa6b2 Mon Sep 17 00:00:00 2001 From: jin Date: Tue, 17 Dec 2024 18:56:11 +0300 Subject: [PATCH] fixed fs watch failing --- file/file.node.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file/file.node.ts b/file/file.node.ts index a6a9867455..4917be3d31 100644 --- a/file/file.node.ts +++ b/file/file.node.ts @@ -66,7 +66,8 @@ namespace $ { }, } ) - watcher.on( 'all' , ( type , path )=> { + watcher + .on( 'all' , ( type , path )=> { if( path instanceof Error ) { this.$.$mol_fail_log( path ) @@ -84,6 +85,7 @@ namespace $ { } } ) + .on( 'error' , $mol_fail_log ) return { destructor() {