From: Jacob Laursen Date: Wed, 22 Jun 2022 20:35:11 +0000 (+0200) Subject: Fix offline description on failed HTTP call (#12990) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=8d900dbcf557dfce50fd975299c92320e39cf9ce;p=openhab-addons.git Fix offline description on failed HTTP call (#12990) Signed-off-by: Jacob Laursen --- diff --git a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java index eb7d929015..b10a09a0e0 100644 --- a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java +++ b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java @@ -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()) {