mirror of
https://github.com/pyihe/go-pkg.git
synced 2025-10-07 17:00:51 +08:00
refactor(errors): change errors
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user