We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c55562 + 702fe1b commit b969381Copy full SHA for b969381
2 files changed
β.github/release.ymlβ
@@ -0,0 +1,14 @@
1
+changelog:
2
+ categories:
3
+ - title: Breaking Changes π
4
+ labels:
5
+ - Breaking change
6
+ - title: New Features π
7
8
+ - Feature
9
+ - title: Fixes βοΈ
10
11
+ - Fix
12
+ - title: Other Changes ποΈ
13
14
+ - "*"
β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