Skip to content

Commit

Permalink
Don't break the trace (#11311)
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
  • Loading branch information
umpirsky authored and Copybara-Service committed Feb 3, 2024
1 parent 2faa9d1 commit d67f921
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 d67f921

Please sign in to comment.