tricrypt/tlep/gmyerr/wrapper.go

13 lines
162 B
Go
Raw Normal View History

2024-06-04 18:19:11 +02:00
package gmyerr
import (
"fmt"
)
func WrapPrefix(prefix string, err error) error {
if err == nil {
return nil
}
return fmt.Errorf("%s: %w", prefix, err)
}