All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 1m49s
Test / Hakurei (push) Successful in 3m18s
Test / Hpkg (push) Successful in 3m43s
Test / Sandbox (race detector) (push) Successful in 3m53s
Test / Hakurei (race detector) (push) Successful in 5m16s
Test / Flake checks (push) Successful in 1m36s
These are also now handled by init properly, so wrapping them in self is meaningless and unreachable. Signed-off-by: Ophestra <cat@gensokyo.uk>
20 lines
302 B
Go
20 lines
302 B
Go
package container
|
|
|
|
var msg Msg = new(DefaultMsg)
|
|
|
|
func GetOutput() Msg { return msg }
|
|
func SetOutput(v Msg) {
|
|
if v == nil {
|
|
msg = new(DefaultMsg)
|
|
} else {
|
|
msg = v
|
|
}
|
|
}
|
|
|
|
func wrapErrSuffix(err error, a ...any) error {
|
|
if err == nil {
|
|
return nil
|
|
}
|
|
return msg.WrapErr(err, append(a, err)...)
|
|
}
|