Skip to content

Commit 55a78d4

Browse files
authored
Update 12.2.md
1 parent 55e90cb commit 55a78d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zh/12.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@
9696
func NotFound404(w http.ResponseWriter, r *http.Request) {
9797
log.Error("页面找不到") //记录错误日志
9898
t, _ = t.ParseFiles("tmpl/404.html", nil) //解析模板文件
99-
ErrorInfo := "文件找不到" //获取当前用户信息
99+
ErrorInfo := "文件找不到" //获取当前报错信息
100100
t.Execute(w, ErrorInfo) //执行模板的merger操作
101101
}
102102

103103
func SystemError(w http.ResponseWriter, r *http.Request) {
104104
log.Critical("系统错误") //系统错误触发了Critical,那么不仅会记录日志还会发送邮件
105105
t, _ = t.ParseFiles("tmpl/error.html", nil) //解析模板文件
106-
ErrorInfo := "系统暂时不可用" //获取当前用户信息
106+
ErrorInfo := "系统暂时不可用" //获取当前报错信息
107107
t.Execute(w, ErrorInfo) //执行模板的merger操作
108108
}
109109

0 commit comments

Comments
 (0)