mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user