- convert module to use DB_TABLE_VERSION_ERROR helper - unify error handling (properly close database on errors, null db handle)
@@ -187,7 +187,7 @@ static int pres_db_init(void) {
}
if (db_check_table_version(&pres_dbf, pres_dbh, &xcap_table,
XCAP_TABLE_VERSION) < 0) {
- LM_ERR("during table version check\n");
+ DB_TABLE_VERSION_ERROR(xcap_table);
pres_db_close();
return -1;