Skip to content

Commit

Permalink
Stop exceptions from breaking the watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Dec 5, 2018
1 parent 227d2f8 commit 41c9c58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PatternLab/Watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ private function updateSite($fileName,$message,$verbose = true) {
} 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());
}

}
Expand Down

0 comments on commit 41c9c58

Please sign in to comment.