Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide useful error message if usm.json or card.json is malformed #12

Open
frederikheld opened this issue Jul 17, 2019 · 0 comments
Open
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

Comments

@frederikheld
Copy link
Owner

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.

@frederikheld frederikheld added the feature-request Request for new feature. This includes improvement of existing feature that are not a bug label Jul 17, 2019
@frederikheld frederikheld added this to the Backlog milestone Jul 17, 2019
@frederikheld frederikheld added module-render-engine Issues related to the module "render-engine" usability Issues related to the usability of usm.io labels Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant