Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Improve error reporting when config.json has syntax errors #47
When starting the punch server with 'punch s', if there is a syntax error in config.json a warning is given and punch falls back on the default config:
However if you introduce a syntax error to config.json whilst developing the site you may end up with a different error that obfuscates the real problem somewhat. For example a missing comma in a stylesheet bundle might give 'Error: Content for combined.css not found'.
I'm not sure which config punch then uses, does it continue to use the custom config, or immediately fall back on the default?
It might me better not to fall back on the default config at all, ever, since a single error in config.json could cause multiple customisations to stop working, not just the one with the syntax error, again somewhat masking the real issue.