Skip to content

Commit 3637207

Browse files
Merge pull request #30 from dimitriBouteille/fix/debug-additionnal-data
🐛 Fix missing additional data with debug mode
2 parents 73ee32b + d94963b commit 3637207

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Wrappers/RestWrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ protected function onError(\Exception $exception): \WP_REST_Response
7171
message: $rootException->getMessage(),
7272
errorCode: $exception->getErrorCode(),
7373
httpStatusCode: $exception->getHttpStatusCode(),
74-
additionalData: [
74+
additionalData: array_merge($exception->getAdditionalData(), [
7575
'exception' => $rootException->getTraceAsString(),
76-
],
76+
]),
7777
previous: $rootException,
7878
);
7979
}

0 commit comments

Comments
 (0)