diff --git a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/method/BaseMethodBinding.java b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/method/BaseMethodBinding.java index 49246714eee..a177756a7bb 100644 --- a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/method/BaseMethodBinding.java +++ b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/method/BaseMethodBinding.java @@ -258,9 +258,9 @@ public abstract class BaseMethodBinding { if (e.getCause() instanceof BaseServerResponseException) { throw (BaseServerResponseException) e.getCause(); } - throw new InternalErrorException("Failed to call access method", e); + throw new InternalErrorException("Failed to call access method: " + e.getCause(), e); } catch (Exception e) { - throw new InternalErrorException("Failed to call access method", e); + throw new InternalErrorException("Failed to call access method: " + e.getCause(), e); } } diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/ServerWithResponseHighlightingInterceptorExceptionTest.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/ServerWithResponseHighlightingInterceptorExceptionTest.java index 5843ae42ff9..72fb556250d 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/ServerWithResponseHighlightingInterceptorExceptionTest.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/server/ServerWithResponseHighlightingInterceptorExceptionTest.java @@ -64,7 +64,7 @@ public class ServerWithResponseHighlightingInterceptorExceptionTest { ourLog.info(responseContent); assertEquals(500, status.getStatusLine().getStatusCode()); - assertThat(responseContent, containsString("")); + assertThat(responseContent, containsString("")); }