Skip to content

Commit c8d37dd

Browse files
committed
Update to handle graphviz output empty graph
1 parent 92f2a4a commit c8d37dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/js/extra.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ function finishView(view) {
343343
var $ele = $(value).parent().parent();
344344

345345
var graphviz = Viz($value.text());
346+
if (!graphviz) throw Error('viz.js output empty graph');
346347
$value.html(graphviz);
347348

348349
$ele.addClass('graphviz');

0 commit comments

Comments
 (0)