diff --git a/public/js/extra.js b/public/js/extra.js index 6143352..0f67f8f 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -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');