mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
chore: fix import and err marshal handling
This commit is contained in:
parent
feb9947543
commit
54e4969d26
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/yusing/go-proxy/pkg/json"
|
||||
stdJSON "encoding/json"
|
||||
)
|
||||
|
||||
func newError(message string) error {
|
||||
|
@ -73,7 +73,7 @@ func IsJSONMarshallable(err error) bool {
|
|||
case *baseError:
|
||||
return IsJSONMarshallable(err.Err)
|
||||
default:
|
||||
var v json.Marshaler
|
||||
var v stdJSON.Marshaler
|
||||
return errors.As(err, &v)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package gpnet
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
|
Loading…
Add table
Reference in a new issue