Add gmyerr package

This commit is contained in:
qowevisa 2024-05-25 09:19:19 +03:00
parent fbd3c39aa9
commit c108b43cfd

12
gmyerr/wrapper.go Normal file
View File

@ -0,0 +1,12 @@
package gmyerr
import (
"fmt"
)
func WrapPrefix(prefix string, err error) error {
if err == nil {
return nil
}
return fmt.Errorf("%s: %w", prefix, err)
}