Skip to content

Commit

Permalink
Some failure case (missing class) not catched in HostsList
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacchella committed Dec 16, 2015
1 parent fa54d8c commit 3cf9c73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jrds/HostsList.java
Expand Up @@ -164,8 +164,8 @@ public void configure(PropertiesManager pm) {
for(Class<? extends Starter> starterClass: timerStarterClasses) {
try {
timer.registerStarter(starterClass.newInstance());
} catch (Exception e) {
log(Level.ERROR, e, "Starter %s failed to register: %s", starterClass, e);
} catch (Throwable e) {
log(Level.ERROR, e, "Starter %s failed to register for timer %s: %s", starterClass, timer.getName(), e.getMessage());
}
}
timer.configureStarters(pm);
Expand All @@ -177,8 +177,8 @@ public void configure(PropertiesManager pm) {
Starter top = starterClass.newInstance();
topStarters.add(top);
registerStarter(top);
} catch (Exception e1) {
log(Level.ERROR, e1, "Starter %s failed to register: %s", starterClass, e1);
} catch (Throwable e) {
log(Level.ERROR, e, "Top level starter %s failed to register: %s", starterClass, e.getMessage());
}
}

Expand Down

0 comments on commit 3cf9c73

Please sign in to comment.