summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-29 12:39:39 (EDT)
committerSteffen Pingel2012-11-09 07:20:54 (EST)
commit7c4f29da78b11269f79ee30ad41b5f968be1e55f (patch)
tree6ba0b9eb5919f9be095f2622e9df455cd9fdb618
parenta2172e3e5655637bcd859066d01b60c7dbb87543 (diff)
downloadorg.eclipse.mylyn.tasks-7c4f29da78b11269f79ee30ad41b5f968be1e55f.zip
org.eclipse.mylyn.tasks-7c4f29da78b11269f79ee30ad41b5f968be1e55f.tar.gz
org.eclipse.mylyn.tasks-7c4f29da78b11269f79ee30ad41b5f968be1e55f.tar.bz2
392923: Trac returns inconsistent RepositoryStatus on failing
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));
}
}