Errorf renders the 500 response with formatted message.
(err error, format string, args ...any)
| 177 | |
| 178 | // Errorf renders the 500 response with formatted message. |
| 179 | func (c *Context) Errorf(err error, format string, args ...any) { |
| 180 | c.Error(err, fmt.Sprintf(format, args...)) |
| 181 | } |
| 182 | |
| 183 | // NotFoundOrError responses with 404 page for not found error and 500 page otherwise. |
| 184 | func (c *Context) NotFoundOrError(err error, msg string) { |