From 02b1c5223b2c0c296b63188104ca3937f39a5c2c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 16 Jul 2021 12:00:40 +0200 Subject: [PATCH] simplify error message about failed invocation of dot --- cmd/kg/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kg/handlers.go b/cmd/kg/handlers.go index 6b95ead..7f864a1 100644 --- a/cmd/kg/handlers.go +++ b/cmd/kg/handlers.go @@ -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 }