2
0

Use github.com/pkg/errors

This commit is contained in:
Jack Christensen
2017-06-04 21:30:03 -05:00
parent 8e404a02a3
commit ffa9ff2213
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ package pgproto3
import (
"encoding/binary"
"fmt"
"github.com/jackc/pgx/pgio"
"github.com/pkg/errors"
)
const (
@@ -31,7 +31,7 @@ func (dst *Authentication) Decode(src []byte) error {
case AuthTypeMD5Password:
copy(dst.Salt[:], src[4:8])
default:
return fmt.Errorf("unknown authentication type: %d", dst.Type)
return errors.Errorf("unknown authentication type: %d", dst.Type)
}
return nil