adopted-ember-addons / ember-changeset

Ember.js flavored changesets, inspired by Ecto
http://bit.ly/ember-changeset-demo
MIT License
431 stars 141 forks source link

Pass through original mergeDeep error in cause property #662

Open mintyfloss opened 1 year ago

mintyfloss commented 1 year ago

Changes proposed in this pull request

This PR passes through the original error with mergeTargetAndSource to help with debugging. I'm getting the mergeDeep error, but I don't have enough info to debug. I recently noticed that there's a cause property that can be used to pass through errors. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause.