fixed error reporing
Merge pull request #8 from Bastiaan-V/master

fixed ldap error reporing