diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-13 18:00:07 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-13 18:00:56 +0200 |
commit | 19cb14ea03ce36545b2e288269a30f0fdd82d402 (patch) | |
tree | 903bd708fea27e15b9b86a0a22d661a2a0327d6a /sonar-ws-client/src/main/java/org/sonar | |
parent | 27576858612f0d5a141ce71b2862ff6c906dabfb (diff) | |
download | sonarqube-19cb14ea03ce36545b2e288269a30f0fdd82d402.tar.gz sonarqube-19cb14ea03ce36545b2e288269a30f0fdd82d402.zip |
Fix some quality flaws
Diffstat (limited to 'sonar-ws-client/src/main/java/org/sonar')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/internal/HttpRequestFactory.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/internal/HttpRequestFactory.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/internal/HttpRequestFactory.java index e454a585448..e8cd100597a 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/internal/HttpRequestFactory.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/internal/HttpRequestFactory.java @@ -135,11 +135,8 @@ public class HttpRequestFactory { // TODO handle error messages throw new HttpException(request.url().toString(), request.code()); - } catch (HttpException e) { - throw e; - } catch (HttpRequest.HttpRequestException e) { - throw new IllegalStateException(e.getCause()); + throw new IllegalStateException("Fail to request " + request.url(), e.getCause()); } } |