Skip to content

Commit

Permalink
auth_db: print db table name when version check fails
Browse files Browse the repository at this point in the history
(cherry picked from commit a8de371)
(cherry picked from commit f62c3cb)
  • Loading branch information
miconda committed Jan 28, 2019
1 parent d2459f1 commit d498c3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/auth_db/auth_db_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ static int auth_fixup(void** param, int param_no)
if(version_table_check!=0
&& db_check_table_version(&auth_dbf, dbh, &name,
TABLE_VERSION) < 0) {
LM_ERR("error during table version check.\n");
LM_ERR("error during version check for db table: %.*s.\n",
name.len, name.s);
auth_dbf.close(dbh);
return -1;
}
Expand Down

0 comments on commit d498c3c

Please sign in to comment.