We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73ee32b + d94963b commit 3637207Copy full SHA for 3637207
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