Exemple #1
0
func Try(c *neo.Ctx, next neo.Next) {

	next()

	if c.HasErrors() {
		c.Res.Status = 500
		msg := ""
		for _, e := range c.Errors {
			msg += e.Error() + "\n"
		}
		c.Res.Text(fmt.Sprint(msg))
	}
}