add chokidar error handler

This commit is contained in:
Jonathan Jogenfors
2024-02-29 22:52:58 +01:00
parent 30a2786044
commit a2ab2fd6f6

View File

@@ -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();
}