From 98a216fb61c7e0c2d11e519a515ffb1ee44a836c Mon Sep 17 00:00:00 2001 From: Peter Franza Date: Wed, 1 Nov 2023 09:16:21 -0400 Subject: [PATCH] trigger full build on exception --- src/main/java/net/ftlines/css/scoper/Watcher.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/ftlines/css/scoper/Watcher.java b/src/main/java/net/ftlines/css/scoper/Watcher.java index 7a7512c..2e469ab 100644 --- a/src/main/java/net/ftlines/css/scoper/Watcher.java +++ b/src/main/java/net/ftlines/css/scoper/Watcher.java @@ -131,6 +131,9 @@ && isChildPath(outputRootPath, workingDirPath) onChange(p); } catch (Exception e) { e.printStackTrace(); + System.out.println("Exception .. triggering full rebuild"); + phase = Phase.REBUILDING; + phaseChangeFunction.accept(phase); } } }