mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +01:00
Fix offline description on failed HTTP call (#12990)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
565dc19508
commit
8d900dbcf5
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user