refactor(errors): change errors

This commit is contained in:
pyihe
2021-07-13 17:44:54 +08:00
parent a20ace4425
commit c5eb321de9
7 changed files with 122 additions and 81 deletions

View File

@@ -11,8 +11,8 @@ import (
)
var (
ErrInvalidUrl = errors.NewError(errors.ErrorCodeFail, "url must start with 'http'")
ErrInvalidEncoder = errors.NewError(errors.ErrorCodeFail, "invalid encoder")
ErrInvalidUrl = errors.New("url must start with 'http'")
ErrInvalidEncoder = errors.New("invalid encoder")
)
// Get