Widen another catch block (to be defensive)
This commit is contained in:
@@ -301,8 +301,14 @@ public class FileMonitorConfiguration implements SmartLifecycle, ResourceLoaderA
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("registering: " + dir + " for file creation events");
|
||||
}
|
||||
try {
|
||||
dir.register(this.watcher, StandardWatchEventKinds.ENTRY_CREATE,
|
||||
StandardWatchEventKinds.ENTRY_MODIFY);
|
||||
} catch (IOException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw new IOException("Cannot register watcher for " + dir, e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user