Don't break the trace (#11311)

Closes #11311

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11311 from umpirsky:patch-1 d280be57b7
PiperOrigin-RevId: 603963886
pull/15651/head
Saša Stamenković 1 year ago committed by Copybara-Service
parent 2faa9d1a5f
commit d67f921f90
  1. 2
      php/src/Google/Protobuf/Internal/Message.php

@ -1314,7 +1314,7 @@ class Message
try {
$this->mergeFromJsonArray($array, $ignore_unknown);
} catch (\Exception $e) {
throw new GPBDecodeException($e->getMessage());
throw new GPBDecodeException($e->getMessage(), $e->getCode(), $e);
}
}

Loading…
Cancel
Save