fixed a compilation error

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19072 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke 2009-06-19 20:54:39 +00:00
parent 271b7c99c4
commit 1447affed5
1 changed files with 2 additions and 7 deletions

View File

@ -187,11 +187,7 @@ public final class WebAppMain implements ServletContextListener {
new Thread("hudson initialization thread") {
public void run() {
try {
try {
context.setAttribute(APP,new Hudson(home,context));
} catch( IOException e ) {
throw new Error(e);
}
context.setAttribute(APP,new Hudson(home,context));
// trigger the loading of changelogs in the background,
// but give the system 10 seconds so that the first page
@ -205,10 +201,9 @@ public final class WebAppMain implements ServletContextListener {
LOGGER.log(Level.SEVERE, "Failed to initialize Hudson",e);
context.setAttribute(APP,new HudsonFailedToLoad(e));
throw e;
} catch (RuntimeException e) {
} catch (Exception e) {
LOGGER.log(Level.SEVERE, "Failed to initialize Hudson",e);
context.setAttribute(APP,new HudsonFailedToLoad(e));
throw e;
}
}
}.start();