Skip to content

Commit 19ef61e

Browse files
ytvnrphiz71
authored andcommitted
feat: propagate failure cause
1 parent 7258910 commit 19ef61e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/io/gravitee/policy/callout/CalloutHttpPolicy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ private Completable executeCallOut(BaseExecutionContext ctx, Req reqConfig) {
144144
new ExecutionFailure(configuration.getErrorStatusCode())
145145
.key(CALLOUT_HTTP_ERROR)
146146
.message(th.getCause().getMessage())
147+
.cause(th)
147148
);
148149
} else if (ctx instanceof KafkaMessageExecutionContext kafkaContext) {
149150
return kafkaContext.executionContext().interruptWith(org.apache.kafka.common.protocol.Errors.UNKNOWN_SERVER_ERROR);

0 commit comments

Comments
 (0)