提交 abe00746 编写于 作者: J Jesse Glick

Better OfflineCause.ChannelTermination.toString().

上级 d91aaebd
......@@ -24,6 +24,7 @@
package hudson.slaves;
import hudson.Functions;
import hudson.model.Computer;
import org.jvnet.localizer.Localizable;
import org.kohsuke.stapler.export.ExportedBean;
......@@ -79,6 +80,10 @@ public abstract class OfflineCause {
public String getShortDescription() {
return cause.toString();
}
@Override public String toString() {
return Messages.OfflineCause_connection_was_broken_(Functions.printThrowable(cause));
}
}
/**
......
......@@ -33,6 +33,7 @@ DumbSlave.displayName=Dumb Slave
NodeProvisioner.EmptyString=
OfflineCause.DisconnectedFromCLI=Disconnected from CLI
OfflineCause.LaunchFailed=This node is offline because Jenkins failed to launch the slave agent on it.
OfflineCause.connection_was_broken_=Connection was broken: {0}
SimpleScheduledRetentionStrategy.FinishedUpTime=Computer has finished its scheduled uptime
SimpleScheduledRetentionStrategy.displayName=Take this slave on-line according to a schedule
EnvironmentVariablesNodeProperty.displayName=Environment variables
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册