From 2eea0c0a703e32b904741d52c9e2c9ae836c14b0 Mon Sep 17 00:00:00 2001 From: Samuel Stauffer Date: Wed, 19 Mar 2014 14:22:55 -0700 Subject: Use error instead of *Error --- bind.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bind.go') diff --git a/bind.go b/bind.go index 742d90b..545748f 100644 --- a/bind.go +++ b/bind.go @@ -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) } -- cgit v1.2.3