Fix offline description on failed HTTP call (#12990)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>pull/12995/head
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