diff --git a/core/src/main/java/hudson/lifecycle/Lifecycle.java b/core/src/main/java/hudson/lifecycle/Lifecycle.java index a77659762a..9ce2de0dc1 100644 --- a/core/src/main/java/hudson/lifecycle/Lifecycle.java +++ b/core/src/main/java/hudson/lifecycle/Lifecycle.java @@ -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() + ")."); } /**