From 9ae23cba314d6da3c8a37427ba6e4f04ccd8ea2f Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Fri, 5 Oct 2007 19:42:21 +0000 Subject: [PATCH] Log exactly why we can't open the database, if we fail (closes issue #10887) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84851 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/db.c b/main/db.c index f4eafc87fc..0b0a424bf1 100644 --- a/main/db.c +++ b/main/db.c @@ -63,7 +63,7 @@ AST_MUTEX_DEFINE_STATIC(dblock); static int dbinit(void) { if (!astdb && !(astdb = dbopen((char *)ast_config_AST_DB, O_CREAT | O_RDWR, 0664, DB_BTREE, NULL))) { - ast_log(LOG_WARNING, "Unable to open Asterisk database\n"); + ast_log(LOG_WARNING, "Unable to open Asterisk database '%s': %s\n", ast_config_AST_DB, strerror(errno)); return -1; } return 0; -- 2.47.3