swaggest / json-diff

JSON diff/rearrange/patch/pointer library for PHP
MIT License
220 stars 30 forks source link

Enhancement: Include failed operation in Exception #45

Open Richard87 opened 2 years ago

Richard87 commented 2 years ago

Hi!

Thanks for an awesome project!

We have som Diffs with a lot of operations in each patch, and the exception can be a little hard to troubleshoot.

Would you be interested in a PR that includes the failed operation in the exception?

vearutop commented 2 years ago

Hi, thank you for using this library.

Such PR would definitely be a valuable contribution, please send!

jakobw commented 2 years ago

If I'm not mistaken this is done in #57. All specific exceptions we added there contain the failed operation.