Include cause in rethrown exception

This commit is contained in:
Dave Syer
2017-03-31 09:01:47 +01:00
committed by markfisher
parent 4346a7adc8
commit cea87fb8c0

View File

@@ -476,7 +476,7 @@ public class ProxyExchange<T> {
}
catch (HttpMessageNotWritableException
| HttpMediaTypeNotAcceptableException e) {
throw new IllegalStateException("Cannot convert body");
throw new IllegalStateException("Cannot convert body", e);
}
return response.getInputStream();
}