simplify error message about failed invocation of dot

This commit is contained in:
Steffen Vogel 2021-07-16 12:00:40 +02:00
parent 46542e44ec
commit 02b1c5223b

View File

@ -110,7 +110,7 @@ func (h *graphHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
output, err := command.Output()
if err != nil {
http.Error(w, fmt.Sprintf("unable to execute dot: %v (is graphviz package installed?)", err), http.StatusInternalServerError)
http.Error(w, "unable to render graph", http.StatusInternalServerError)
return
}