Commit Graph

4 Commits

Author SHA1 Message Date
Simone Gotti
d2b09d854f *: use new errors handling library
Implement a new error handling library based on pkg/errors. It provides
stack saving on wrapping and exports some function to add stack saving
also to external errors.
It also implements custom zerolog error formatting without adding too
much verbosity by just printing the chain error file:line without a full
stack trace of every error.

* Add a --detailed-errors options to print error with they full chain
* Wrap all error returns. Use errors.WithStack to wrap without adding a
  new messsage and error.Wrap[f] to add a message.
* Add golangci-lint wrapcheck to check that external packages errors are
  wrapped. This won't check that internal packages error are wrapped.
  But we want also to ensure this case so we'll have to find something
  else to check also these.
2022-02-28 12:49:13 +01:00
Simone Gotti
15bd82b143 doc: document supported go versions.
We usually test and support the latest two major versions of Go like in the [Go
release policy](https://golang.org/doc/devel/release.html#policy).
2020-01-24 13:54:47 +01:00
Carlo Mandelli
985c17f66b update example in devel doc 2019-08-19 10:16:54 +02:00
Simone Gotti
d6034f3cb8 README: add local development doc and agola demo link 2019-07-02 10:54:44 +02:00