Browse code

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.

Olle E. Johansson authored on 16/12/2014 09:08:45
Showing 1 changed files
... ...
@@ -78,19 +78,19 @@ int db_check_api(db_func_t* dbf, char *mname)
78 78
 
79 79
 	/* All modules must export db_use_table */
80 80
 	if (dbf->use_table == 0) {
81
-		LM_ERR("module %s does not export db_use_table function\n", mname);
81
+		LM_ERR("module %s does not export db_use_table function. Please check if module is loaded.\n", mname);
82 82
 		goto error;
83 83
 	}
84 84
 
85 85
 	/* All modules must export db_init */
86 86
 	if (dbf->init == 0) {
87
-		LM_ERR("module %s does not export db_init function\n", mname);
87
+		LM_ERR("module %s does not export db_init function. Please check if module is loaded.\n", mname);
88 88
 		goto error;
89 89
 	}
90 90
 
91 91
 	/* All modules must export db_close */
92 92
 	if (dbf->close == 0) {
93
-		LM_ERR("module %s does not export db_close function\n", mname);
93
+		LM_ERR("module %s does not export db_close function. Please check if module is loaded.\n", mname);
94 94
 		goto error;
95 95
 	}
96 96