[Internal] Warn for missing brackets (#2151)

* Warn for missing braces

* Overlay, too
This commit is contained in:
Joe Haddad
2017-05-14 20:59:20 -04:00
committed by GitHub
parent 75fc094a5d
commit 9b228176f0
5 changed files with 15 additions and 5 deletions

View File

@@ -82,7 +82,9 @@ function ansiHTML(txt) {
if (color != null) {
result += '<span style="color: #' + color + ';">' + part + '</span>';
} else {
if (fg != null) console.log('Missing color mapping: ', fg);
if (fg != null) {
console.log('Missing color mapping: ', fg);
}
result += '<span>' + part + '</span>';
}
if (_index < contentParts.length - 1) {