Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Prakash2016-03-03 12:51:35 -0500
committerWinston Prakash2016-03-03 12:51:35 -0500
commitcd795f55bd1a3fe25e720c0c08b22369891da2be (patch)
tree9c5d06cdcc1af6d6edfdba51bc5416c98112f062
parent09433d955f9f1502499da3b0d2dca301261baf03 (diff)
downloadorg.eclipse.hudson.core-cd795f55bd1a3fe25e720c0c08b22369891da2be.tar.gz
org.eclipse.hudson.core-cd795f55bd1a3fe25e720c0c08b22369891da2be.tar.xz
org.eclipse.hudson.core-cd795f55bd1a3fe25e720c0c08b22369891da2be.zip
Apply Roy's patch for logging error and skipping corrupted jobs
-rw-r--r--hudson-core/src/main/java/hudson/model/TopLevelItemsCache.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/hudson-core/src/main/java/hudson/model/TopLevelItemsCache.java b/hudson-core/src/main/java/hudson/model/TopLevelItemsCache.java
index 65285107..c2e191f0 100644
--- a/hudson-core/src/main/java/hudson/model/TopLevelItemsCache.java
+++ b/hudson-core/src/main/java/hudson/model/TopLevelItemsCache.java
@@ -85,9 +85,10 @@ class TopLevelItemsCache {
key.clearLoadErrorFlag();
return item;
}
- catch (IOException ex) {
+ catch (Throwable ex) {
+ System.err.println("ERROR===: Unable to load " +key.name);
key.setLoadErrorFlag();
- return new BrokenTopLevelItem(key, ex);
+ return new BrokenTopLevelItem(key, new Exception(ex));
}
}

Back to the top