diff options
-rw-r--r-- | misc/errors.go | 7 |
1 files changed, 7 insertions, 0 deletions
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) +} |