fix error messages on bad schema

This commit is contained in:
Ron Pedde
2006-04-10 04:27:52 +00:00
parent c7cc788a1d
commit 8ca978322a
5 changed files with 14 additions and 10 deletions

View File

@@ -321,8 +321,14 @@ int main(int argc, char *argv[]) {
err=db_open(&perr,db_type,db_parms);
if(err) {
DPRINTF(E_FATAL,L_MAIN|L_DB,"Error: db_open %s/%s: %s\n",
db_type,db_parms,perr);
DPRINTF(E_LOG,L_MAIN|L_DB,"Error opening db: %s\n",perr);
#ifndef WITHOUT_MDNS
if(config.use_mdns) {
rend_stop();
}
#endif
os_deinit();
exit(EXIT_FAILURE);
}
free(db_type);