diff options
| author | Samuel Stauffer <[email protected]> | 2014-03-19 14:22:55 -0700 |
|---|---|---|
| committer | Samuel Stauffer <[email protected]> | 2014-03-19 14:22:55 -0700 |
| commit | 2eea0c0a703e32b904741d52c9e2c9ae836c14b0 (patch) | |
| tree | 10820142494033c3d3297249ab31efe0176aec77 /bind.go | |
| parent | 706c1cdc687158e370b72181f3a0e88f5156309b (diff) | |
Use error instead of *Error
Diffstat (limited to 'bind.go')
| -rw-r--r-- | bind.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ import ( "github.com/SpruceHealth/asn1-ber" ) -func (l *Conn) Bind(username, password string) *Error { +func (l *Conn) Bind(username, password string) error { messageID := l.nextMessageID() packet := ber.Encode(ber.ClassUniversal, ber.TypeConstructed, ber.TagSequence, nil, "LDAP Request") @@ -41,7 +41,7 @@ func (l *Conn) Bind(username, password string) *Error { if l.Debug { if err := addLDAPDescriptions(packet); err != nil { - return NewError(ErrorDebugging, err.Err) + return err } ber.PrintPacket(packet) } |
