Commit c8d37dd1 authored by Wu Cheng-Han's avatar Wu Cheng-Han
Browse files

Update to handle graphviz output empty graph

parent 92f2a4ac
......@@ -343,6 +343,7 @@ function finishView(view) {
var $ele = $(value).parent().parent();
var graphviz = Viz($value.text());
if (!graphviz) throw Error('viz.js output empty graph');
$value.html(graphviz);
$ele.addClass('graphviz');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment