diff --git a/src/SharpIDE.Application/Features/FileWatching/IdeFileWatcher.cs b/src/SharpIDE.Application/Features/FileWatching/IdeFileWatcher.cs index 88b204d..0774c08 100644 --- a/src/SharpIDE.Application/Features/FileWatching/IdeFileWatcher.cs +++ b/src/SharpIDE.Application/Features/FileWatching/IdeFileWatcher.cs @@ -29,6 +29,7 @@ public sealed class IdeFileWatcher : IDisposable fileWatcher.OnCreated += OnEvent; fileWatcher.OnDeleted += OnEvent; fileWatcher.OnRenamed += OnEvent; + fileWatcher.OnError += static (s, e) => Console.WriteLine($"FileSystemWatcher: Error - {e.GetException().Message}"); fileWatcher.Start(); _fileWatcher = fileWatcher;