Improve file watch error message

This commit is contained in:
crschnick 2024-03-01 07:12:35 +00:00
parent 2cda040274
commit d0497fcba2

View file

@ -52,7 +52,7 @@ public class AppFileWatcher {
try { try {
watchService = FileSystems.getDefault().newWatchService(); watchService = FileSystems.getDefault().newWatchService();
} catch (IOException e) { } catch (IOException e) {
ErrorEvent.fromThrowable(e).handle(); ErrorEvent.fromThrowable("Unable to initialize file watcher. Watching and updating files in the file browser will be unavailable.", e).expected().handle();
return; return;
} }