We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6165a commit c27b80bCopy full SHA for c27b80b
src/main/java/org/jenkinsci/plugins/workflow/actions/ErrorAction.java
@@ -176,9 +176,11 @@ public String getUrlName() {
176
public static boolean equals(Throwable t1, Throwable t2) {
177
if (t1 == t2) {
178
return true;
179
- } else if (t1.getClass() != t2.getClass()) {
+ }
180
+ boolean noProxy = t1.getClass() != ProxyException.class && t2.getClass() != ProxyException.class;
181
+ if (noProxy && t1.getClass() != t2.getClass()) {
182
return false;
- } else if (!Objects.equals(t1.getMessage(), t2.getMessage())) {
183
+ } else if (noProxy && !Objects.equals(t1.getMessage(), t2.getMessage())) {
184
185
} else {
186
String id1 = findId(t1, new HashSet<>());
0 commit comments