Skip to content

Commit

Permalink
[Debug]: improved identifier debug msg instead of [object Object]
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer authored and igorT committed Sep 30, 2020
1 parent bf3d4e7 commit 4bd2b32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class InternalModelFactory {
// (this may not be strictly true, we could probably swap the internalModel the record points at)
if (im && otherIm && im.hasRecord && otherIm.hasRecord) {
throw new Error(
`Failed to update the 'id' for the RecordIdentifier '${identifier}' to '${resourceData.id}', because that id is already in use by '${matchedIdentifier}'`
`Failed to update the 'id' for the RecordIdentifier '${identifier.type}:${identifier.id} (${identifier.lid})' to '${resourceData.id}', because that id is already in use by '${matchedIdentifier.type}:${matchedIdentifier.id} (${matchedIdentifier.lid})'`
);
}

Expand Down

0 comments on commit 4bd2b32

Please sign in to comment.