Skip to content

Commit

Permalink
Update to handle graphviz output empty graph
Browse files Browse the repository at this point in the history
  • Loading branch information
jackycute committed Dec 19, 2016
1 parent 92f2a4a commit c8d37dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/js/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit c8d37dd

Please sign in to comment.