summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-29 12:39:39 (EDT)
committer Gerrit Code Review @ Eclipse.org2012-11-09 07:19:35 (EST)
commit3a2ae69c6df6d0f2a14af1722a66557071118831 (patch)
tree6e4224406edbdacebce4c98c031566db36ec45a4
parent7cab6be23cfccef1ac9048ff92c002e3dc39eace (diff)
downloadorg.eclipse.mylyn.tasks-3a2ae69c6df6d0f2a14af1722a66557071118831.zip
org.eclipse.mylyn.tasks-3a2ae69c6df6d0f2a14af1722a66557071118831.tar.gz
org.eclipse.mylyn.tasks-3a2ae69c6df6d0f2a14af1722a66557071118831.tar.bz2
392923: Trac returns inconsistent RepositoryStatus on failingrefs/changes/98/8398/2
updateConfig Change-Id: Ib9c7de0fc6c7c07ea7f015b1c2fa27ac97c1deb6 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=392923
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
index 278a37a..09b735f 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
@@ -646,9 +646,10 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
try {
ITracClient client = getClientManager().getTracClient(repository);
client.updateAttributes(monitor, true);
- } catch (Exception e) {
- throw new CoreException(RepositoryStatus.createStatus(repository.getRepositoryUrl(), IStatus.WARNING,
- TracCorePlugin.ID_PLUGIN, "Could not update attributes")); //$NON-NLS-1$
+ } catch (OperationCanceledException e) {
+ throw e;
+ } catch (Throwable e) {
+ throw new CoreException(TracCorePlugin.toStatus(e, repository));
}
}