pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

Stop exceptions from breaking the watcher #170

Open thewilkybarkid opened 5 years ago

thewilkybarkid commented 5 years ago

We're currently hitting https://github.com/pattern-lab/patternengine-php-twig/issues/34#issuecomment-383032335, where an invalid Twig template (possible while developing) breaks the watcher. Using --no-procs reveals the exception and the terminated process, otherwise it silently fails (the watch process continues, but nothing happens).

This catches any exception and outputs the message.