mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 09:06:03 +00:00
... except such a method is already in the Functions class.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9888 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
721ca12762
commit
e81374ad42
8 files changed
+15
-35
No files matched your search
@@ -39,8 +39,6 @@ import java.io.ObjectOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.Serializable;
|
||||
import java.io.Writer;
|
||||
import java.io.StringWriter;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
@@ -852,9 +850,7 @@ public final class FilePath implements Serializable {
|
||||
throw e; // the remote side completed successfully, so the error must be local
|
||||
} catch (ExecutionException x) {
|
||||
// report both errors
|
||||
StringWriter sw = new StringWriter();
|
||||
e.printStackTrace(new PrintWriter(sw));
|
||||
throw new IOException2(sw.toString(),x);
|
||||
throw new IOException2(Functions.printThrowable(e),x);
|
||||
} catch (TimeoutException _) {
|
||||
// remote is hanging
|
||||
throw e;
|
||||
|
||||
Reference in new issue
Block a user