Kevin Wan 3 سال پیش
والد
کامیت
9d0b51fa26
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      rest/httpx/responses.go

+ 1 - 1
rest/httpx/responses.go

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