]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix offline description on failed HTTP call (#12990)
authorJacob Laursen <jacob-github@vindvejr.dk>
Wed, 22 Jun 2022 20:35:11 +0000 (22:35 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 20:35:11 +0000 (22:35 +0200)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java

index eb7d929015a53fc4bbbc93b892b7cf770a32a5d6..b10a09a0e01e74f5e5a1ab6a72c94b8a9eeba1dc 100644 (file)
@@ -216,7 +216,7 @@ public class IndegoController {
                 throw new IndegoAuthenticationException("Context rejected");
             }
             if (!HttpStatus.isSuccess(status)) {
-                throw new IndegoAuthenticationException("The request failed with HTTP error: " + status);
+                throw new IndegoException("The request failed with error: " + status);
             }
             String jsonResponse = response.getContentAsString();
             if (jsonResponse.isEmpty()) {