mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-05 03:40:18 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@84852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -63,7 +63,7 @@ AST_MUTEX_DEFINE_STATIC(dblock);
|
|||||||
static int dbinit(void)
|
static int dbinit(void)
|
||||||
{
|
{
|
||||||
if (!astdb && !(astdb = dbopen((char *)ast_config_AST_DB, O_CREAT | O_RDWR, AST_FILE_MODE, DB_BTREE, NULL))) {
|
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 -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user