MCPcopy Index your code
hub / github.com/TruthHun/BookStack / ShowErrorPage

Method ShowErrorPage

controllers/BaseController.go:280–285  ·  view source on GitHub ↗

显示错误信息页面.

(errCode int, errMsg string)

Source from the content-addressed store, hash-verified

278
279// 显示错误信息页面.
280func (this *BaseController) ShowErrorPage(errCode int, errMsg string) {
281 this.TplName = "errors/error.html"
282 this.Data["ErrorMessage"] = errMsg
283 this.Data["ErrorCode"] = errCode
284 this.StopRun()
285}
286
287// 根据页面获取seo
288// @param page 页面标识

Callers 2

CompareMethod · 0.80
ListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected