Commit a7a91049 authored by chenweijian's avatar chenweijian

err

parent 10439230
......@@ -2,7 +2,6 @@ package myerr
import (
"fmt"
"git.hilo.cn/hilo-common/myerr"
"git.hilo.cn/hilo-common/mylogrus"
"github.com/pkg/errors"
"strconv"
......@@ -226,7 +225,3 @@ func WrapErr(err error) error {
return errors.Wrap(err, "")
}
}
func ToLocal(err *myerr.BusinessError) error {
return NewBusinessCode(err.GetCode(), err.GetMsg(), BusinessData{})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment