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
+1 -3
View File
@@ -4,8 +4,6 @@ import (
"encoding/binary"
"fmt"
"io"
"github.com/pkg/errors"
)
// Backend acts as a server for the PostgreSQL wire protocol version 3.
@@ -124,7 +122,7 @@ func (b *Backend) Receive() (FrontendMessage, error) {
case 'X':
msg = &b.terminate
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)