Skip to content

Commit

Permalink
Don't break the trace (#11311) (#15727)
Browse files Browse the repository at this point in the history
Closes #11311

COPYBARA_INTEGRATE_REVIEW=#11311 from umpirsky:patch-1 d280be5
PiperOrigin-RevId: 603963886

Co-authored-by: Saša Stamenković <umpirsky@gmail.com>
  • Loading branch information
zhangskz and umpirsky authored Feb 5, 2024
1 parent e99f27e commit 3e99024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/src/Google/Protobuf/Internal/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ public function parseFromJsonStream($input, $ignore_unknown)
try {
$this->mergeFromJsonArray($array, $ignore_unknown);
} catch (\Exception $e) {
throw new GPBDecodeException($e->getMessage());
throw new GPBDecodeException($e->getMessage(), $e->getCode(), $e);
}
}

Expand Down

0 comments on commit 3e99024

Please sign in to comment.