changeset 3195:66b3085ecc49

mod_lib_ldap: assert() connection for hopefully better error reporting (thanks adac)
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Jul 2018 10:35:30 +0100
parents 395835d89d88
children 01503000d2f1
files mod_lib_ldap/ldap.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_lib_ldap/ldap.lib.lua	Tue Jul 24 17:18:13 2018 +0200
+++ b/mod_lib_ldap/ldap.lib.lua	Thu Jul 26 10:35:30 2018 +0100
@@ -168,7 +168,7 @@
 
 -- this is abstracted so we can maintain persistent connections at a later time
 function _M.getconnection()
-    return connect();
+    return assert(connect());
 end
 
 function _M.getparams()