diff --git a/core/src/main/java/hudson/model/Slave.java b/core/src/main/java/hudson/model/Slave.java index d8bc7a85e2..bcc63084cd 100644 --- a/core/src/main/java/hudson/model/Slave.java +++ b/core/src/main/java/hudson/model/Slave.java @@ -218,7 +218,8 @@ public final class Slave implements Node, Serializable { public ClockDifference getClockDifference() throws IOException, InterruptedException { VirtualChannel channel = getComputer().getChannel(); - if(channel==null) return null; // can't check + if(channel==null) + throw new IOException(getNodeName()+" is offline"); long startTime = System.currentTimeMillis(); long slaveTime = channel.call(new Callable() {