Update to handle graphviz output empty graph

This commit is contained in:
Wu Cheng-Han 2016-12-19 16:53:54 +08:00
parent 92f2a4acf0
commit c8d37dd192

View file

@ -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');