Skip to content

Commit f228cf9

Browse files
committed
Fail earlier if dot isn't installed
1 parent 856ce27 commit f228cf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

post/graphviz/src/jig/main.go

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ func run() error {
4343
roots = []string{root}
4444
}
4545

46+
if _, err := exec.LookPath("dot"); err != nil {
47+
fmt.Fprintf(w, "checking if dot is installed: %v", err)
48+
return
49+
}
50+
4651
cmd := exec.Command("dot", "-Tsvg")
4752
cmd.Stdout = w
4853

0 commit comments

Comments
 (0)