diff options
author | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 22:05:10 +0100 |
---|---|---|
committer | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 22:05:10 +0100 |
commit | 4e3f3713c8f6debc9a2844af538094968142a714 (patch) | |
tree | 0c479514925aabf0bf8776b7756d8a7204820aec /search.go | |
parent | Stylistic fixes, update imports, and some format string fixes (diff) | |
download | ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.gz ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.bz2 ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.lz ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.xz ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.zst ldap-4e3f3713c8f6debc9a2844af538094968142a714.zip |
Diffstat (limited to 'search.go')
-rw-r--r-- | search.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -231,7 +231,7 @@ func (l *Conn) SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) return searchResult, err } if result == nil { - return searchResult, NewError(ErrorNetwork, errors.New("Packet not received")) + return searchResult, NewError(ErrorNetwork, errors.New("ldap: packet not received")) } for _, entry := range result.Entries { @@ -292,7 +292,7 @@ func (l *Conn) Search(searchRequest *SearchRequest) (*SearchResult, *Error) { return nil, err } if channel == nil { - return nil, NewError(ErrorNetwork, errors.New("Could not send message")) + return nil, NewError(ErrorNetwork, errors.New("ldap: could not send message")) } defer l.finishMessage(messageID) @@ -307,7 +307,7 @@ func (l *Conn) Search(searchRequest *SearchRequest) (*SearchResult, *Error) { packet = <-channel l.Debug.Printf("%d: got response %p\n", messageID, packet) if packet == nil { - return nil, NewError(ErrorNetwork, errors.New("Could not retrieve message")) + return nil, NewError(ErrorNetwork, errors.New("ldap: could not retrieve message")) } if l.Debug { |