diff --git a/public/js/extra.js b/public/js/extra.js index 614335284..0f67f8fb2 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');