Skip to content

Commit

Permalink
Don't break the trace
Browse files Browse the repository at this point in the history
  • Loading branch information
umpirsky authored Dec 15, 2022
1 parent 08ad73b commit d280be5
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 @@ -1336,7 +1336,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 d280be5

Please sign in to comment.