Files
hakurei/system/output.go
Ophestra 87e008d56d treewide: rename to hakurei
Fortify makes little sense for a container tool.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-06-25 04:57:41 +09:00

21 lines
346 B
Go

package system
import "git.gensokyo.uk/security/hakurei/sandbox"
var msg sandbox.Msg = new(sandbox.DefaultMsg)
func SetOutput(v sandbox.Msg) {
if v == nil {
msg = new(sandbox.DefaultMsg)
} else {
msg = v
}
}
func wrapErrSuffix(err error, a ...any) error {
if err == nil {
return nil
}
return msg.WrapErr(err, append(a, err)...)
}