Skip to content

0.1.1 CaptureErr API change and isErr bug fix

Compare
Choose a tag to compare
@ybabts ybabts released this 22 Jun 01:29
· 19 commits to main since this release

This release contains an API change to CaptureError as well as a bug fix for isErr.

  • CaptureError has changed from accepting a function and an optional name, returning a "safe" version of the function to accepting a name and function, returning a Result. This leads to more readable code and a very minor increase in performance.
  • isErr's specific error testing functionality did not work with the new error chaining method implemented in the previous version. That has been fixed and now isErr checks every error name in the chain. Please do not make circular references in Error chains and cause an infinite loop.

Please refer to the commit history for more detailed information about each change.

Full Changelog: 0.1.0...0.1.1