0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 09:12:45 +00:00

New error bar made

This commit is contained in:
Scott Tolksdorf
2016-09-15 09:07:57 -04:00
parent dd1264d2e6
commit 2a0c06cd3d
5 changed files with 147 additions and 34 deletions

View File

@@ -47,7 +47,8 @@ module.exports = {
errors.push({
line : lineNumber,
type : type,
err : 'Unmatched closing tag'
text : 'Unmatched closing tag',
id : 'CLOSE'
});
}else if(_.last(acc).type == type){
acc.pop();
@@ -55,7 +56,8 @@ module.exports = {
errors.push({
line : _.last(acc).line + ' to ' + lineNumber,
type : type,
err : 'Type mismatch on closing tag'
text : 'Type mismatch on closing tag',
id : 'MISMATCH'
});
acc.pop();
}
@@ -69,7 +71,8 @@ module.exports = {
errors.push({
line : unmatched.line,
type : unmatched.type,
err : "Unmatched opening tag"
text : "Unmatched opening tag",
id : 'OPEN'
})
});