mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
all: remove pkg/errors
This commit is contained in:
committed by
Ariel Mashraki
parent
f0710aa004
commit
eb87d64980
@@ -5,10 +5,10 @@
|
||||
package graphson
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"unsafe"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// EncoderOfError returns a value encoder which always fails to encode.
|
||||
@@ -22,7 +22,7 @@ func (decodeExtension) DecoderOfError(format string, args ...interface{}) jsonit
|
||||
}
|
||||
|
||||
func decoratorOfError(format string, args ...interface{}) errorCodec {
|
||||
err := errors.Errorf(format, args...)
|
||||
err := fmt.Errorf(format, args...)
|
||||
return errorCodec{err}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user