2
0

Use github.com/pkg/errors

This commit is contained in:
Jack Christensen
2017-06-04 21:30:03 -05:00
parent 3ea41e6972
commit 8f4178b3d3
86 changed files with 639 additions and 597 deletions
+3 -2
View File
@@ -3,7 +3,8 @@ package pgtype
import (
"database/sql/driver"
"encoding/json"
"fmt"
"github.com/pkg/errors"
)
type JSON struct {
@@ -135,7 +136,7 @@ func (dst *JSON) Scan(src interface{}) error {
return dst.DecodeText(nil, srcCopy)
}
return fmt.Errorf("cannot scan %T", src)
return errors.Errorf("cannot scan %T", src)
}
// Value implements the database/sql/driver Valuer interface.