typedb-osi / typedb-loader

TypeDB Loader - Data Migration Tool for TypeDB
https://github.com/typedb-osi/typedb-loader
Apache License 2.0
58 stars 17 forks source link

clearer error messages for end-users #21

Closed suciokhan closed 2 years ago

suciokhan commented 3 years ago

Error messages in Grami are a little vague.

Example: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 135 column 10 path $.[4].conceptGenerators

Something is wrong with a .json file, but which one? There are 4 at play during ingest.

hkuich commented 3 years ago

@suciokhan : I am planning on writing a data config / processor config validator that checks these against each other and the supplied schema before each migration - and if anything doesn't line up/make sense, to give that in better detail. I agree, most error messages are difficult to understand. Thanks for the feedback, will let you know!

hkuich commented 2 years ago

much improved through config validation @suciokhan