From 0d20d422cee194569ba423630c9bc8e2ef2e931b Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 30 Apr 2018 09:29:31 -0400 Subject: [PATCH] hotfix for watch not defined --- lib/core/engine.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/engine.js b/lib/core/engine.js index a39ec5e50..bfdca869f 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -146,7 +146,9 @@ class Engine { self.currentAbi = abi; self.contractsJSON = contractsJSON; pipeline.build(abi, contractsJSON, null, function() { - self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched + if (self.watch) { + self.watch.restart(); // Necessary because changing a file while it is writing can stop it from being watched + } self.events.emit('outputDone'); }); });