diff --git a/src/PatternLab/Watcher.php b/src/PatternLab/Watcher.php index 50a6059f..f6c89a3d 100644 --- a/src/PatternLab/Watcher.php +++ b/src/PatternLab/Watcher.php @@ -321,7 +321,15 @@ private function updateSite($fileName,$message,$verbose = true) { Annotations::clear(); $g = new Generator(); - $g->generate($options); + try { + $g->generate($options); + } catch (\Exception $e) { + Console::writeWarning("Failed on update to ".$fileName); + Console::writeWarning($e->getMessage()); + } catch (\Throwable $e) { + Console::writeWarning("Failed on update to ".$fileName); + Console::writeWarning($e->getMessage()); + } }