mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
improving the error handling. Error page shouldn't be 200.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9871 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
f940bd39ad
commit
a212202bbf
1 file changed
+3
@@ -14,6 +14,7 @@ import hudson.util.NoHomeDir;
|
||||
import hudson.util.RingBufferLogHandler;
|
||||
import hudson.util.NoTempDir;
|
||||
import hudson.util.IncompatibleAntVersionDetected;
|
||||
import hudson.util.HudsonFailedToLoad;
|
||||
import org.jvnet.localizer.LocaleProvider;
|
||||
import org.kohsuke.stapler.Stapler;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
@@ -169,9 +170,11 @@ public class WebAppMain implements ServletContextListener {
|
||||
}, 1000*10);
|
||||
} catch (Error e) {
|
||||
LOGGER.log(Level.SEVERE, "Failed to initialize Hudson",e);
|
||||
context.setAttribute(APP,new HudsonFailedToLoad(e));
|
||||
throw e;
|
||||
} catch (RuntimeException e) {
|
||||
LOGGER.log(Level.SEVERE, "Failed to initialize Hudson",e);
|
||||
context.setAttribute(APP,new HudsonFailedToLoad(e));
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user