Skip to content

Commit

Permalink
Fix problem with handling exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed May 31, 2023
1 parent c90e126 commit 59b01d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/src/GRPC/Interceptors/ExceptionHandlerInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ public function process(string $controller, string $action, array $parameters, C
}

$details = [];
while ($e->getPrevious()) {
$previous = $e->getPrevious();
while ($previous !== null) {
$details[] = new ErrorInfo([
'domain' => $controller,
]);

$previous = $previous->getPrevious();
}

throw new GRPCException(
Expand Down

0 comments on commit 59b01d3

Please sign in to comment.