Skip to content

Commit

Permalink
Merge pull request #662 from mintyfloss/merge-deep
Browse files Browse the repository at this point in the history
Pass through original mergeDeep error in cause property
  • Loading branch information
SergeAstapov authored Oct 26, 2024
2 parents 8c59713 + 9d0754b commit ac10658
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/utils/merge-deep.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default function mergeDeep(target, source, options = {}) {
// this is very unlikely to be hit but lets throw an error otherwise
throw new Error(
'Unable to `mergeDeep` with your data. Are you trying to merge two ember-data objects? Please file an issue with ember-changeset.',
{ cause: e },
);
}
}
Expand Down

0 comments on commit ac10658

Please sign in to comment.