Commit a7a91049 authored by chenweijian's avatar chenweijian

err

parent 10439230
...@@ -2,7 +2,6 @@ package myerr ...@@ -2,7 +2,6 @@ package myerr
import ( import (
"fmt" "fmt"
"git.hilo.cn/hilo-common/myerr"
"git.hilo.cn/hilo-common/mylogrus" "git.hilo.cn/hilo-common/mylogrus"
"github.com/pkg/errors" "github.com/pkg/errors"
"strconv" "strconv"
...@@ -226,7 +225,3 @@ func WrapErr(err error) error { ...@@ -226,7 +225,3 @@ func WrapErr(err error) error {
return errors.Wrap(err, "") 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