mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 00:41:10 +08:00
update
This commit is contained in:
parent
e6b54eedbf
commit
ce5efae287
4 changed files with 39 additions and 19 deletions
2
ecw.go
2
ecw.go
|
|
@ -136,7 +136,7 @@ func (ecw *errorCapturingResponseWriter) processAfterFileServer() {
|
|||
ecw.ctx.Next()
|
||||
} else {
|
||||
// 调用用户自定义的 ErrorHandlerFunc, 由它负责完整的错误响应
|
||||
ecw.errorHandlerFunc(ecw.ctx, ecw.Status())
|
||||
ecw.errorHandlerFunc(ecw.ctx, ecw.Status(), errors.New("file server error"))
|
||||
ecw.ctx.Abort()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue