Throw a more descriptive error when multiple DB drivers are available.

This commit is contained in:
Alexey Kopytov
2017-02-01 19:03:13 +03:00
parent 4a755b1c5d
commit fdebeaffc3

View File

@ -231,7 +231,8 @@ db_driver_t *db_create(const char *name)
log_text(LOG_INFO, "No DB drivers specified, using %s", drv->sname);
else
{
log_text(LOG_FATAL, "no database driver specified");
log_text(LOG_FATAL, "Multiple DB drivers are available. "
"Use --db-driver=name to specify which one to use");
goto err;
}
}