summaryrefslogtreecommitdiff
path: root/js/lib/html.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-10 15:30:57 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-10 15:30:57 -0800
commit94cd37405040b27ab20c2f373c08e61170365ff3 (patch)
treef2da41f6325040b025bc319bb94359784138bd9b /js/lib/html.js
parentc772cd9c1b55f46306260977835f8d315275ee94 (diff)
HTML renderer: throw error on unknown tag type.
This indicates a programming error.
Diffstat (limited to 'js/lib/html.js')
-rw-r--r--js/lib/html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/html.js b/js/lib/html.js
index 928964e..08daa95 100644
--- a/js/lib/html.js
+++ b/js/lib/html.js
@@ -225,7 +225,7 @@ var renderNodes = function(block, options) {
break;
default:
- console.log("Unknown node type " + node.t);
+ throw("Unknown node type " + node.t);
}
}