Tell the user what's wrong, not just that it's wrong.
@@ -64,7 +64,7 @@ db1_con_t* dbt_init(const str* _sqlurl)
if(_s.len <= DBT_ID_LEN || strncmp(_s.s, DBT_ID, DBT_ID_LEN)!=0)
{
LM_ERR("invalid database URL - should be:"
- " <%s[/]path/to/directory>\n", DBT_ID);
+ " <%s[/]path/to/directory> Current: %s\n", DBT_ID, _s.s);
return NULL;
}
/*