From 7a480ad159b93b06223d9298424dc14472ddf8c9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 4 Jan 2025 21:13:40 +0800 Subject: misc: Wrap_one_error --- misc/errors.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 misc/errors.go (limited to 'misc') diff --git a/misc/errors.go b/misc/errors.go new file mode 100644 index 0000000..5c22a20 --- /dev/null +++ b/misc/errors.go @@ -0,0 +1,7 @@ +package misc + +import "fmt" + +func Wrap_one_error(a error, b error) error { + return fmt.Errorf("%w: %w", a, b) +} -- cgit v1.2.3