summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-21 13:12:41 (EDT)
committerKevin Sawicki2011-04-21 13:12:41 (EDT)
commitb2b9efef023c2d145a05c547401d3fed140dd89d (patch)
treeedceea62dd0ec78023e72abe10a39218fb562884
parent3d4fac7dfe6c6defcbac67e5096f88280d98d396 (diff)
downloadegit-github-b2b9efef023c2d145a05c547401d3fed140dd89d.zip
egit-github-b2b9efef023c2d145a05c547401d3fed140dd89d.tar.gz
egit-github-b2b9efef023c2d145a05c547401d3fed140dd89d.tar.bz2
Use IOException constructor that is 1.5 compliant.refs/changes/02/3202/1
Bug: 343489 Change-Id: I5eea8c66b30820c533ea8d3a9d43dba822ec24f8 Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java
index 665cfb9..32d3cbb 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubClient.java
@@ -220,7 +220,7 @@ public class GitHubClient {
throw new IOException(method.getStatusText());
}
} catch (JsonParseException jpe) {
- throw new IOException(jpe);
+ throw new IOException(jpe.getMessage());
}
}
@@ -256,7 +256,7 @@ public class GitHubClient {
throw new IOException(method.getStatusText());
}
} catch (JsonParseException jpe) {
- throw new IOException(jpe);
+ throw new IOException(jpe.getMessage());
} finally {
method.releaseConnection();
}