tricrypt/gmyerr/wrapper.go
2024-05-25 09:19:19 +03:00

13 lines
162 B
Go

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