Skip to content

Commit 41c9c58

Browse files
Stop exceptions from breaking the watcher
1 parent 227d2f8 commit 41c9c58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PatternLab/Watcher.php

+3
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ private function updateSite($fileName,$message,$verbose = true) {
326326
} catch (\Exception $e) {
327327
Console::writeWarning("Failed on update to ".$fileName);
328328
Console::writeWarning($e->getMessage());
329+
} catch (\Throwable $e) {
330+
Console::writeWarning("Failed on update to ".$fileName);
331+
Console::writeWarning($e->getMessage());
329332
}
330333

331334
}

0 commit comments

Comments
 (0)