[fix] webdiff should trigger failure
This commit is contained in:
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user