Description

Attaches an error to the current context. The error is pushed to a list of errors. It's a good idea to call Error for each error that occurred during the resolution of a request. A middleware can be used to collect all the errors and push them to a database together, print a log, or append it in the HTTP response.

Error is referenced in 29 repositories

github.com/gin-gonic/gin github.com/eirka/eirka-post github.com/leighmacdonald/mika

...