wrap errors

Implement error wrapping so we catch all errors into a single error.
This commit is contained in:
2022-01-09 15:39:37 -05:00
parent b4419a6f8c
commit d13b263222
9 changed files with 86 additions and 107 deletions

View File

@@ -224,6 +224,8 @@ func main() {
}
----
Note that many functions/methods may return a https://pkg.go.dev/r00t2.io/goutils/multierr#MultiError[`(r00t2.io/goutils/)multierr.MultiError`^], which you may attempt to typeswitch to receive the original errors in their native error format. The functions/methods which may return a MultiError are noted as such in their individual documentation.
== Library Hacking
=== Reference