コード例 #1
0
ファイル: httphelper.go プロジェクト: vmihailenco/appengine
func HandleWarning(c context.Context, w http.ResponseWriter, e error) {
	c.Warningf(e.Error())
	handleStatus(c, w, e, http.StatusBadRequest)
}
コード例 #2
0
ファイル: httphelper.go プロジェクト: vmihailenco/appengine
func HandleStatus(c context.Context, w http.ResponseWriter, e error, status int) {
	c.Warningf(e.Error())
	handleStatus(c, w, e, status)
}