aboutsummaryrefslogtreecommitdiffhomepage
path: root/sandbox/output.go
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/output.go')
-rw-r--r--sandbox/output.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/sandbox/output.go b/sandbox/output.go
index de4a104a..5d74395b 100644
--- a/sandbox/output.go
+++ b/sandbox/output.go
@@ -17,3 +17,10 @@ func wrapErrSuffix(err error, a ...any) error {
}
return msg.WrapErr(err, append(a, err)...)
}
+
+func wrapErrSelf(err error) error {
+ if err == nil {
+ return nil
+ }
+ return msg.WrapErr(err, err.Error())
+}