Skip to content

Commit 3e99024

Browse files
zhangskzumpirsky
andauthored
Don't break the trace (#11311) (#15727)
Closes #11311 COPYBARA_INTEGRATE_REVIEW=#11311 from umpirsky:patch-1 d280be5 PiperOrigin-RevId: 603963886 Co-authored-by: Saša Stamenković <[email protected]>
1 parent e99f27e commit 3e99024

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/src/Google/Protobuf/Internal/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ public function parseFromJsonStream($input, $ignore_unknown)
13141314
try {
13151315
$this->mergeFromJsonArray($array, $ignore_unknown);
13161316
} catch (\Exception $e) {
1317-
throw new GPBDecodeException($e->getMessage());
1317+
throw new GPBDecodeException($e->getMessage(), $e->getCode(), $e);
13181318
}
13191319
}
13201320

0 commit comments

Comments
 (0)