s4-smb_server: Put error from share_get_config() into the logs
authorAndrew Bartlett <abartlet@samba.org>
Mon, 5 Mar 2012 20:34:16 +0000 (07:34 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Mar 2012 11:46:13 +0000 (12:46 +0100)
source4/smb_server/smb/service.c

index 7be21c14bd0c2b1ef38f3f522ddad27816048712..9ad0f3894ed3f852b37add476984880d3cb6c35f 100644 (file)
@@ -124,7 +124,7 @@ static NTSTATUS make_connection(struct smbsrv_request *req,
 
        status = share_get_config(req, req->smb_conn->share_context, service, &scfg);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0,("make_connection: couldn't find service %s\n", service));
+               DEBUG(0,("make_connection: couldn't find service %s: %s\n", service, nt_errstr(status)));
                return NT_STATUS_BAD_NETWORK_NAME;
        }