Pārlūkot izejas kodu

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 10 gadi atpakaļ
vecāks
revīzija
53cfb31a4b
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      lib/srdb1/db.c

+ 3 - 3
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 */
 	/* All modules must export db_use_table */
 	if (dbf->use_table == 0) {
 	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;
 		goto error;
 	}
 	}
 
 
 	/* All modules must export db_init */
 	/* All modules must export db_init */
 	if (dbf->init == 0) {
 	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;
 		goto error;
 	}
 	}
 
 
 	/* All modules must export db_close */
 	/* All modules must export db_close */
 	if (dbf->close == 0) {
 	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;
 		goto error;
 	}
 	}