diff --git a/server/src/infra/repositories/filesystem.provider.ts b/server/src/infra/repositories/filesystem.provider.ts index 3ffcd8111f..9398a90462 100644 --- a/server/src/infra/repositories/filesystem.provider.ts +++ b/server/src/infra/repositories/filesystem.provider.ts @@ -145,6 +145,7 @@ export class FilesystemProvider implements IStorageRepository { watcher.on('add', (path) => events.onAdd?.(path)); watcher.on('change', (path) => events.onChange?.(path)); watcher.on('unlink', (path) => events.onUnlink?.(path)); + watcher.on('error', (error) => events.onError?.(error)); return () => watcher.close(); }