mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 13:40:37 -05:00
Add error reporting to db check
This commit is contained in:
parent
08de32f87a
commit
43d5dc2e88
2 changed files with 225 additions and 219 deletions
|
|
@ -346,7 +346,10 @@ main()
|
|||
|
||||
rc = db_env_create( &env, 0 );
|
||||
|
||||
if( rc ) return rc;
|
||||
if( rc ) {
|
||||
printf("BerkeleyDB: %s\n", db_strerror(rc) );
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifdef DB_CDB_ALLDB
|
||||
rc = env->set_flags( env, DB_CDB_ALLDB, 1 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue