This commit is contained in:
Kevin Wan
2021-11-10 21:25:51 +08:00
committed by GitHub
parent ba5f8045a2
commit 9d0b51fa26

View File

@@ -24,7 +24,7 @@ func Error(w http.ResponseWriter, err error) {
return
}
code, body := errorHandler(err)
code, body := handler(err)
if body == nil {
w.WriteHeader(code)
return