From fdebeaffc35130705740903abc72ace6a1451931 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Wed, 1 Feb 2017 19:03:13 +0300 Subject: [PATCH] Throw a more descriptive error when multiple DB drivers are available. --- src/db_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db_driver.c b/src/db_driver.c index 0de413b..9148910 100644 --- a/src/db_driver.c +++ b/src/db_driver.c @@ -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; } }