Provide useful error message if usm.json or card.json is malformed #12
Labels
feature-request
Request for new feature. This includes improvement of existing feature that are not a bug
module-render-engine
Issues related to the module "render-engine"
usability
Issues related to the usability of usm.io
Milestone
Example: If "stories" is missing in usm.json, error says "UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined".
Solution: This message should be more specific and help to find the error. E. g. "Field 'stories' missing in ...". It should also help to fix/avoid the error, e. g. "Field 'stories' is mandatory for a step."
Also make renderer more flexible. This specific example shouldn't lead to an error at all. It should be allowed to leave fields undefined.
The text was updated successfully, but these errors were encountered: