mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
[HUDSON-4876] Improving RestartNotSupportedException diagnostics.
Getting the following in 1.336 on Solaris, which does not tell you what is actually wrong (what subclass does not override restart?): hudson.lifecycle.RestartNotSupportedException: Restart is not supported in this running mode. at hudson.lifecycle.Lifecycle.verifyRestartable(Lifecycle.java:161) at hudson.model.Hudson.safeRestart(Hudson.java:2928) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26362 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b196662454
commit
0935d962fc
1 file changed
+2
-1
@@ -158,7 +158,8 @@ public abstract class Lifecycle implements ExtensionPoint {
|
||||
public void verifyRestartable() throws RestartNotSupportedException {
|
||||
// the rewriteHudsonWar method isn't overridden.
|
||||
if (!Util.isOverridden(Lifecycle.class,getClass(), "restart"))
|
||||
throw new RestartNotSupportedException("Restart is not supported in this running mode.");
|
||||
throw new RestartNotSupportedException("Restart is not supported in this running mode (" +
|
||||
getClass().getName() + ").");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user