diff --git a/scripts/formatter/no_split_var.js b/scripts/formatter/no_split_var.js index 0fb1e056e..966ad314c 100644 --- a/scripts/formatter/no_split_var.js +++ b/scripts/formatter/no_split_var.js @@ -15,15 +15,25 @@ for (let i = 0; i < specLines.length; i++) { const line = specLines[i]; for (let pair of openClosePairs) { if (line.lastIndexOf(pair[0]) > line.lastIndexOf(pair[1])) { - failed.push( + const message = `Unclosed ${line.substring(line.lastIndexOf(pair[0]))} at line ${i - + 1}`) + + 1}`; + failed.push(message); + + console.log(`L${i}: ${line}`); + console.log(message); } } if ((line.split("|") - 1).length % 2) { - failed.push( - `Unclosed ${line.substring(line.lastIndexOf("|"))} at line ${i + 1}`) + const message = `Unclosed ${line.substring( + line.lastIndexOf("|"))} at line ${i + 1}`; + failed.push(message); + + failed.push(message); + + console.log(`L${i}: ${line}`); + console.log(message); } }