From 19cb14ea03ce36545b2e288269a30f0fdd82d402 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 13 Jun 2013 18:00:07 +0200 Subject: Fix some quality flaws --- .../main/java/org/sonar/wsclient/internal/HttpRequestFactory.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sonar-ws-client/src/main/java/org/sonar') 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()); } } -- cgit v1.2.3