(ctx iris.Context)
| 26 | } |
| 27 | |
| 28 | func internalServerError(ctx iris.Context) { |
| 29 | ctx.StatusCode(iris.StatusInternalServerError) |
| 30 | |
| 31 | data := iris.Map{ |
| 32 | "Code": iris.StatusInternalServerError, |
| 33 | "Message": "Internal Server Error", |
| 34 | } |
| 35 | |
| 36 | ctx.ViewLayout("error") |
| 37 | if err := ctx.View("500", data); err != nil { |
| 38 | ctx.HTML("<h3>%s</h3>", err.Error()) |
| 39 | return |
| 40 | } |
| 41 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…