Skip to content

Releases: Southclaws/fault

v0.8.1

23 Jan 16:05
Compare
Choose a tag to compare

What's Changed

  • fix De-duplication logic causes some sentinel error patterns to result in error chain losses #41 by @Southclaws in #43
  • fixes Pass ...Wrapper list to New constructor #31 by @Southclaws in #42

Full Changelog: v0.8.0...v0.8.1

v0.8.0

21 Nov 11:54
Compare
Choose a tag to compare

Fixes #41

v0.7.0

22 Sep 12:46
Compare
Choose a tag to compare

What's Changed

  • feat: allow to get all tags in wrapped errors by @matdurand in #39
  • chore: create an example of an API server using fault by @matdurand in #35

Full Changelog: v0.6.1...v0.7.0

v0.6.1

04 Jul 10:21
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1

v0.6.0

17 Jun 13:16
Compare
Choose a tag to compare

What's Changed

  • issue 28: use fault.new location for formatting by @matdurand in #29
  • issue 28: fix wrong location of some errors by @matdurand in #30

New Contributors

  • Thanks @matdurand for the improvements to error chain flattening #29

Full Changelog: v0.5.1...v0.6.0

v0.5.1: Cleaner messages and sane map mutation

10 Jan 10:18
Compare
Choose a tag to compare

This release addresses a quality-of-life issue with error messages and a bug with fctx maps being mutated unexpectedly.

  • Fault's top-level .Error() method will now filter out non-messages like <fctx> so instead of some error: <fctx>: <fctx>: <fctx>: <ftag>: root cause you'll just see some error: root cause
  • The underlying map used to store the key-value metadata in fctx context and error objects is now copied when wrapped so the original isn't modified.

v0.5.0: Better flattening and nil safety

30 Nov 12:09
Compare
Choose a tag to compare
  • Does not panic when passed a nil error (#20)
  • Resolves empty error messages in certain cases (#7, #16)
  • Yield a more logical error chain for errors wrapped with fmt.Errorf and pkg/errors (#24)
  • Don't duplicate messages even when the .Error() implementation includes a duplicate of the nested error (#24)
  • Simplify the Flatten output to just a slice of steps in the error chain, no more Root as index [0] already contains the root (#11)

v0.4.4: verbs and more tests

29 Nov 15:58
Compare
Choose a tag to compare
  • More correctly implemented Format by respecting the + flag of the %v verb
  • %s will simply output .Error()
  • Written a bunch more tests to cover various format outputs

v0.4.3: Flattening and formatting

20 Nov 22:49
Compare
Choose a tag to compare
  • More logical behaviour of Format
  • Error() will now not duplicate error messages
  • Minimum Go version put back to 1.18
  • Lots more tests to cover Flatten, Format and Error behaviour

v0.4.2: zero dependencies

20 Nov 22:47
Compare
Choose a tag to compare
  • Moved dependencies to a sub-module, Fault now requires no external libraries
  • Automated and passing tests (thanks to @toqueteos)