Skip to content

Commit

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

COPYBARA_INTEGRATE_REVIEW=protocolbuffers#11311 from umpirsky:patch-1 d280be5
PiperOrigin-RevId: 603963886
  • Loading branch information
umpirsky authored and deannagarcia committed Jun 20, 2024
1 parent de5edc6 commit d285cad
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 d285cad

Please sign in to comment.