mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
15 lines
183 B
Go
15 lines
183 B
Go
package errors
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
func Wrap(err error, msg string) error {
|
|
return fmt.Errorf("%s: %w", msg, err)
|
|
}
|
|
|
|
func New(msg string) error {
|
|
return errors.New(msg)
|
|
}
|