Macaron cleanup (#37795)
* simplify some dependency injection in macaron * remove unused internal server error handler from macaron * remove internal server error handler from the router * remove unused combo router api * remove unused parts of the macaron router
This commit is contained in:
@@ -53,7 +53,7 @@ func defaultReturnHandler() ReturnHandler {
|
||||
if isError(respVal) {
|
||||
err := respVal.Interface().(error)
|
||||
if err != nil {
|
||||
ctx.internalServerError(ctx, err)
|
||||
http.Error(resp, err.Error(), 500)
|
||||
}
|
||||
return
|
||||
} else if canDeref(respVal) {
|
||||
|
||||
Reference in New Issue
Block a user