design-lint icon indicating copy to clipboard operation
design-lint copied to clipboard

Fix deduplication of different errors

Open ertrzyiks opened this issue 1 year ago • 0 comments

The default value field of the object returned by createErrorObject is an empty string. Having two errors of different type or message share the value and comparison by value alone "" === "" is enough to merge two different errors into one.

createErrorObject(node, "new-kind", "Message 1")
createErrorObject(node, "new-kind", "Message 2")

With this change only errors with the same type, message and value are merged into one.

ertrzyiks avatar Oct 14 '22 12:10 ertrzyiks