[sr-dev] git:master:53cfb31a: srdb1 Change error message.

Olle E. Johansson oej at edvina.net
Tue Dec 16 10:10:16 CET 2014


Module: kamailio
Branch: master
Commit: 53cfb31a4b13afb16e6cbfe82993990ee1bbb8ef
URL: https://github.com/kamailio/kamailio/commit/53cfb31a4b13afb16e6cbfe82993990ee1bbb8ef

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2014-12-16T10:09:45+01:00

srdb1 Change error message.

This error message is shown both if module is not loaded at all and if module actually doesn't
support the function.

---

Modified: lib/srdb1/db.c

---

Diff:  https://github.com/kamailio/kamailio/commit/53cfb31a4b13afb16e6cbfe82993990ee1bbb8ef.diff
Patch: https://github.com/kamailio/kamailio/commit/53cfb31a4b13afb16e6cbfe82993990ee1bbb8ef.patch

---

diff --git a/lib/srdb1/db.c b/lib/srdb1/db.c
index 98d3cde..72fe2d8 100644
--- a/lib/srdb1/db.c
+++ b/lib/srdb1/db.c
@@ -78,19 +78,19 @@ int db_check_api(db_func_t* dbf, char *mname)
 
 	/* All modules must export db_use_table */
 	if (dbf->use_table == 0) {
-		LM_ERR("module %s does not export db_use_table function\n", mname);
+		LM_ERR("module %s does not export db_use_table function. Please check if module is loaded.\n", mname);
 		goto error;
 	}
 
 	/* All modules must export db_init */
 	if (dbf->init == 0) {
-		LM_ERR("module %s does not export db_init function\n", mname);
+		LM_ERR("module %s does not export db_init function. Please check if module is loaded.\n", mname);
 		goto error;
 	}
 
 	/* All modules must export db_close */
 	if (dbf->close == 0) {
-		LM_ERR("module %s does not export db_close function\n", mname);
+		LM_ERR("module %s does not export db_close function. Please check if module is loaded.\n", mname);
 		goto error;
 	}
 




More information about the sr-dev mailing list