We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73ee32b commit d94963bCopy full SHA for d94963b
1 file changed
src/Wrappers/RestWrapper.php
@@ -71,9 +71,9 @@ protected function onError(\Exception $exception): \WP_REST_Response
71
message: $rootException->getMessage(),
72
errorCode: $exception->getErrorCode(),
73
httpStatusCode: $exception->getHttpStatusCode(),
74
- additionalData: [
+ additionalData: array_merge($exception->getAdditionalData(), [
75
'exception' => $rootException->getTraceAsString(),
76
- ],
+ ]),
77
previous: $rootException,
78
);
79
}
0 commit comments