From 78423ca29290529e533b700843ae13ace3d3eb2c Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Thu, 31 Jan 2019 01:47:50 +0100 Subject: [PATCH] [JENKINS-47896] - Add some diagnostics for the failing channel comparison in FilePath --- core/src/main/java/hudson/FilePath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 9cb3835dc9..5a02e2251e 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -2988,7 +2988,7 @@ public final class FilePath implements SerializableOnlyOverRemoting { private void writeObject(ObjectOutputStream oos) throws IOException { Channel target = getChannelForSerialization(); if(channel!=target) { - throw new IllegalStateException("Can't send a remote FilePath to a different remote channel"); + throw new IllegalStateException("Can't send a remote FilePath to a different remote channel (current=" + channel + ", target=" + target + ")"); } oos.defaultWriteObject();