diff options
author | Wu Cheng-Han | 2016-12-19 16:53:54 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-12-19 16:53:54 +0800 |
commit | c8d37dd192f656be970515919ae8208294a59d96 (patch) | |
tree | 074b34bb59814539ac8112f544f96c3521eb93f7 | |
parent | 92f2a4acf05505ae2fbfd2d3c11ef30e4746971c (diff) |
Update to handle graphviz output empty graph
Diffstat (limited to '')
-rw-r--r-- | public/js/extra.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 61433528..0f67f8fb 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'); |