7c425e25cb
Fixes from golangci-lint
2023-12-26 16:44:53 +01:00
9567a98606
Move massert into internal, and simplify it a lot
...
The previous massert isn't that useful compared to testify, but it's
nice to have some assertion helpers in the repo which don't require a
sub-dependency.
2023-12-26 16:27:41 +01:00
Brian Picciano
ba9bc6c46c
refactor mlog and merr to handle and format error messages better
2021-04-09 18:05:07 -06:00
Brian Picciano
360d41e2b8
Refactor merr, remove almost everything else
2021-04-09 17:30:59 -06:00
Brian Picciano
f5cea76cb7
mtest/massert: rename a bunch of functions
2019-03-10 19:23:37 -04:00
Brian Picciano
4536db8968
merr: refactor Wrap/WrapSkip/New to take multiple contexts rather than annotations
2019-02-27 13:05:51 -05:00
Brian Picciano
4303da03cc
merr/mctx: move stack code into merr
2019-02-27 12:18:56 -05:00
Brian Picciano
e1e52db208
refactor everything to use context's annotation system, making some significant changes to annotations themselves along the way
2019-02-24 15:36:07 -05:00
Brian Picciano
c6e29715b0
merr: implement WithKV
2019-02-02 20:18:39 -05:00
Brian Picciano
ddd26259b2
merr: make New take in optional key/value pairs for convenience
2019-01-25 17:32:53 -05:00
Brian Picciano
405120513f
merr: move With/GetValue to kv.go, make nil error behavior be explicitly defined and tested
2019-01-24 16:45:38 -05:00
Brian Picciano
56f3e71acd
merr: initial implementation, designed to replace merry and work nicely with mlog, while allowing support for multi-errors and other niceties in the future
2019-01-15 00:00:24 -05:00