querylog: imp code

This commit is contained in:
Dimitry Kolyshev 2023-05-31 15:11:33 +03:00
parent ca22d8524d
commit 649454e77b

View file

@ -121,7 +121,7 @@ func (l *queryLog) handleQueryLogExport(w http.ResponseWriter, r *http.Request)
csvWriter := csv.NewWriter(w)
defer func() {
if err = csvWriter.Error(); err != nil {
http.Error(w, "writing csv", http.StatusInternalServerError)
aghhttp.Error(r, w, http.StatusInternalServerError, "writing csv")
}
}()