patternlab-php-core icon indicating copy to clipboard operation
patternlab-php-core copied to clipboard

Stop exceptions from breaking the watcher

Open thewilkybarkid opened this issue 7 years ago • 0 comments

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.

thewilkybarkid avatar Dec 05 '18 21:12 thewilkybarkid