Skip to content

Commit

Permalink
Pass through original mergeDeep error in cause property
Browse files Browse the repository at this point in the history
  • Loading branch information
mintyfloss authored and SergeAstapov committed Oct 26, 2024
1 parent 8c59713 commit 9d0754b
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 9d0754b

Please sign in to comment.