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 Igor Terzic committed Sep 29, 2020
1 parent fedc5c1 commit 435537f
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 435537f

Please sign in to comment.