Commit 192c5a45 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

better error message on index fail

parent 5b74f5c6
Pipeline #4070 passed with stage
in 18 seconds
......@@ -60,7 +60,7 @@ func handleUpload(w http.ResponseWriter, r *http.Request) {
err = updateIndex()
if err != nil {
httpError(w, r, "Could not update index", http.StatusInternalServerError)
httpFail(w, r, "Could not update index", err)
// best-effort to remove the file if we could not update the index
os.Remove(p)
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment