Merge branch 'master' of github.com:jamesagnew/hapi-fhir

This commit is contained in:
jamesagnew 2018-05-21 19:05:01 -04:00
commit 91547d1b6e
2 changed files with 3 additions and 3 deletions

View File

@ -258,9 +258,9 @@ public abstract class BaseMethodBinding<T> {
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);
}
}

View File

@ -64,7 +64,7 @@ public class ServerWithResponseHighlightingInterceptorExceptionTest {
ourLog.info(responseContent);
assertEquals(500, status.getStatusLine().getStatusCode());
assertThat(responseContent, containsString("<diagnostics value=\"Failed to call access method\"/>"));
assertThat(responseContent, containsString("<diagnostics value=\"Failed to call access method: java.lang.Error: AAABBB\"/>"));
}