diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-06-04 19:50:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:08 -0500 |
commit | 3f0f678154039f1906d207e5246d955394b17967 (patch) | |
tree | db866ef4cc3739dab407c3d1e8250f746327ae06 /source3/lib | |
parent | f96193a2cb18c86f625532f8824dde01ed193ce7 (diff) | |
download | samba-3f0f678154039f1906d207e5246d955394b17967.tar.gz samba-3f0f678154039f1906d207e5246d955394b17967.tar.bz2 samba-3f0f678154039f1906d207e5246d955394b17967.zip |
r23344: Better error message
(This used to be commit 4042d2cdd2797e2f675ddeb0d288327ca55d9f5b)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages_local.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index b459ce0238..f210bff695 100644 --- a/source3/lib/messages_local.c +++ b/source3/lib/messages_local.c @@ -93,9 +93,11 @@ NTSTATUS messaging_tdb_init(struct messaging_context *msg_ctx, O_RDWR|O_CREAT,0600); if (!tdb) { - DEBUG(0,("ERROR: Failed to initialise messages database\n")); + NTSTATUS status = map_nt_error_from_unix(errno); + DEBUG(0, ("ERROR: Failed to initialise messages database: " + "%s\n", strerror(errno))); TALLOC_FREE(result); - return NT_STATUS_INTERNAL_DB_CORRUPTION; + return status; } sec_init(); |