Merge pull request #953 from jamesagnew/call_access_method

forward cause of "failed to Call access method"
This commit is contained in:
Patrick Werner 2018-05-17 17:41:57 +02:00 committed by GitHub
commit 01ef2a3077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) { if (e.getCause() instanceof BaseServerResponseException) {
throw (BaseServerResponseException) e.getCause(); 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) { } 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); ourLog.info(responseContent);
assertEquals(500, status.getStatusLine().getStatusCode()); 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\"/>"));
} }