From 8d900dbcf557dfce50fd975299c92320e39cf9ce Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Wed, 22 Jun 2022 22:35:11 +0200 Subject: [PATCH] Fix offline description on failed HTTP call (#12990) Signed-off-by: Jacob Laursen --- .../openhab/binding/boschindego/internal/IndegoController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 eb7d929015a..b10a09a0e01 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()) {