diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-05 19:48:10 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-05 19:48:10 +0000 |
commit | ec6ee0ca092eb47eaee10543aa0606e8e46af7cc (patch) | |
tree | d14cf0cf903355714b3d49e9fde12a471a80f752 /main/db.c | |
parent | 25100005cd2d97348ada51e838db76af605e80a9 (diff) |
Merged revisions 84851 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84851 | tilghman | 2007-10-05 14:42:21 -0500 (Fri, 05 Oct 2007) | 2 lines
Log exactly why we can't open the database, if we fail (closes issue #10887)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84852 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/db.c')
-rw-r--r-- | main/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, AST_FILE_MODE, 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; |