2
0

Remove pkg/errors package

This commit is contained in:
Jack Christensen
2019-08-31 11:53:26 -05:00
parent 1ba5dcbe01
commit 2bc8f2e6af
9 changed files with 17 additions and 26 deletions
+2 -3
View File
@@ -2,9 +2,8 @@ package pgproto3
import (
"encoding/binary"
"fmt"
"io"
"github.com/pkg/errors"
)
// Frontend acts as a client for the PostgreSQL wire protocol version 3.
@@ -115,7 +114,7 @@ func (b *Frontend) Receive() (BackendMessage, error) {
case 'Z':
msg = &b.readyForQuery
default:
return nil, errors.Errorf("unknown message type: %c", b.msgType)
return nil, fmt.Errorf("unknown message type: %c", b.msgType)
}
msgBody, err := b.cr.Next(b.bodyLen)