diff --git a/caddyhttp/errors/errors.go b/caddyhttp/errors/errors.go index 6c97f3c1c..fd09f8fb1 100644 --- a/caddyhttp/errors/errors.go +++ b/caddyhttp/errors/errors.go @@ -142,7 +142,7 @@ func (h ErrorHandler) recovery(w http.ResponseWriter, r *http.Request) { } // Trim file path - delim := "/caddy/" + delim := "/github.com/mholt/caddy/" pkgPathPos := strings.Index(file, delim) if pkgPathPos > -1 && len(file) > pkgPathPos+len(delim) { file = file[pkgPathPos+len(delim):]