[fix] webdiff should trigger failure

This commit is contained in:
2019-08-31 17:58:32 +02:00
parent 10925352ab
commit 85a0fd7d32

View File

@@ -35,10 +35,7 @@ export function webDiffWatcher(conf: Conf) {
htmlDiff += `<span style="color: ${color};">${htmlStripped}</span>`
});
if (htmlDiff) {
fs.writeFileSync(path.join(__dirname, 'diff.html'), htmlDiff, 'utf8')
}
console.log('Diff done')
throw 'Diff detected'
}
}