mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 10:47:20 +00:00
@@ -548,8 +548,14 @@ func (h *routerHandler) FireErrorCode(ctx *context.Context) {
|
||||
break
|
||||
}
|
||||
|
||||
// not error handler found, write a default message.
|
||||
ctx.WriteString(context.StatusText(statusCode))
|
||||
// not error handler found,
|
||||
// see if failed with a stored error, and if so
|
||||
// then render it, otherwise write a default message.
|
||||
if err := ctx.GetErr(); err != nil {
|
||||
ctx.WriteString(err.Error())
|
||||
} else {
|
||||
ctx.WriteString(context.StatusText(statusCode))
|
||||
}
|
||||
}
|
||||
|
||||
func (h *routerHandler) subdomainAndPathAndMethodExists(ctx *context.Context, t *trie, method, path string) bool {
|
||||
|
||||
Reference in New Issue
Block a user