Ejemplo n.º 1
0
func HandleError(c context.Context, w http.ResponseWriter, e error) {
	c.Errorf(e.Error())
	handleStatus(c, w, e, http.StatusBadRequest)
	if Notifier != nil {
		Notifier.Notify(c, e, c.HTTPRequest(), nil)
	}
}