s3:smbclient: print nt status code when smb echo fails
authorMichael Adam <obnox@samba.org>
Fri, 22 Jul 2011 13:38:38 +0000 (15:38 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 22 Jul 2011 13:42:17 +0000 (15:42 +0200)
source3/client/client.c

index 836bc56553ec58683d8540075fec48ce48379e12..8c797e5e0e442fe4d95319d6743d74a7d1cf656c 100644 (file)
@@ -5024,8 +5024,8 @@ static void readline_callback(void)
        memset(garbage, 0xf0, sizeof(garbage));
        status = cli_echo(cli, 1, data_blob_const(garbage, sizeof(garbage)));
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0, ("SMBecho failed. Maybe server has closed "
-                       "the connection\n"));
+               DEBUG(0, ("SMBecho failed (%s). Maybe server has closed "
+                       "the connection\n", nt_errstr(status)));
                finished = true;
                smb_readline_done();
        }