mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Display entity names during AttributeValidation errors, not just `entid` #711

Open grigoryk opened 6 years ago

grigoryk commented 6 years ago

During attribute validation, it's helpful to see actual entity names in the error message, and not just their entid.

So, instead of ... BadSchemaAssertion(":db/fulltext true without :db/index true for entid: 65537")

... it'd be nice to bail out with ... BadSchemaAssertion(":db/fulltext true without :db/index true for :page/title (entid: 65537)")

... or just drop entid entirely, as it's not providing useful information when debugging a vocabulary: BadSchemaAssertion(":db/fulltext true without :db/index true for :page/title")