Merge branch 'feature/RM-5611_UITestsEditGuidedClassif_cg' into 'master'

Feature/rm 5611 ui tests edit guided classif cg

See merge request !524
This commit is contained in:
Tom Page
2017-09-08 15:27:43 +01:00

View File

@@ -406,9 +406,13 @@ public abstract class BaseAPI
{ {
responseBody = new JSONObject(EntityUtils.toString(response.getEntity())); responseBody = new JSONObject(EntityUtils.toString(response.getEntity()));
} }
catch (ParseException | IOException | JSONException error) catch (JSONException error)
{ {
LOGGER.error("Parsing message body failed", error); LOGGER.error("Converting message body to JSON failed. Body: {}", responseBody, error);
}
catch (ParseException | IOException error)
{
LOGGER.error("Parsing message body failed.", error);
} }
switch (response.getStatusLine().getStatusCode()) switch (response.getStatusLine().getStatusCode())