Better error handling for ldapSearch descruction