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

More Helpful JSON / YAML Error Messages + Minor cleanup of JSON / YAML related variables in Pattern Rules #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sghoweri
Copy link
Contributor

Now passing in the actual filename + path to the JSON and YAML file functions so errors are more helpful + easier to debug.

This small change makes a huge difference in projects like the Bolt Design System I run (where we're installing, versioning and publishing individual components) given that Pattern Lab by default tries to pick up deeply nested files in our component-specific node_modules folders which, unless / until patched, can often cause fatal errors w/ Pattern Lab that are close to near impossible to track down otherwise.

better_json_errors_-_before

better_json_errors_-_after

CC @aleksip

…clarity -- passing in the actual filename + path to the JSON and YAML data functions so errors are more helpful. Related to #146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants