frederikheld / usm.io

A lightweight solution to represent your backlog as a User Story Map and integrate backlog management into your development workflow by maintaining it in your repository side-by-side with your code.
MIT License
6 stars 1 forks source link

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

Open frederikheld opened 5 years ago

frederikheld commented 5 years ago

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.