Repository: jclouds-labs Updated Branches: refs/heads/master c4e36e72e -> b09b1d9a2
Treat 422 responses in ProfitBricks as bad requests Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs/commit/b09b1d9a Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs/tree/b09b1d9a Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs/diff/b09b1d9a Branch: refs/heads/master Commit: b09b1d9a2c27fc74dab4e8f6590fdf0b1d6de95a Parents: c4e36e7 Author: Ignasi Barrera <[email protected]> Authored: Fri Oct 28 17:27:07 2016 +0200 Committer: Ignasi Barrera <[email protected]> Committed: Fri Oct 28 17:27:07 2016 +0200 ---------------------------------------------------------------------- .../profitbricks/rest/handlers/ProfitBricksHttpErrorHandler.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds-labs/blob/b09b1d9a/profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/handlers/ProfitBricksHttpErrorHandler.java ---------------------------------------------------------------------- diff --git a/profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/handlers/ProfitBricksHttpErrorHandler.java b/profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/handlers/ProfitBricksHttpErrorHandler.java index 6c46cad..74d600f 100644 --- a/profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/handlers/ProfitBricksHttpErrorHandler.java +++ b/profitbricks-rest/src/main/java/org/apache/jclouds/profitbricks/rest/handlers/ProfitBricksHttpErrorHandler.java @@ -43,6 +43,7 @@ public class ProfitBricksHttpErrorHandler implements HttpErrorHandler { switch (response.getStatusCode()) { case 400: case 405: + case 422: exception = new IllegalArgumentException(response.getMessage(), exception); break; case 401:
