mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
parent
ba5f8045a2
commit
9d0b51fa26
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user