summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-08-29 13:10:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:24 -0500
commita34c21f3783c9d8e18fa1a4a5cd1e734f80b7a91 (patch)
treeaad0d61bce385b1379c2e61a892c364cad081387 /source3
parent86dc60492aa0c4c42b7506aa6ac6f4ac5e27c9f6 (diff)
downloadsamba-a34c21f3783c9d8e18fa1a4a5cd1e734f80b7a91.tar.gz
samba-a34c21f3783c9d8e18fa1a4a5cd1e734f80b7a91.tar.bz2
samba-a34c21f3783c9d8e18fa1a4a5cd1e734f80b7a91.zip
r9736: be a little more verbose on error.
Guenther (This used to be commit 48cb0638b598be391e69695c63a19814084658ca)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/smbspool.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index b1c17a26fc..5d27fbe4c2 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -226,12 +226,12 @@ static int smb_print(struct cli_state *, char *, FILE *);
{
if (getenv("CLASS") == NULL)
{
- fprintf(stderr, "ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...");
- sleep (60);
+ fprintf(stderr, "ERROR: Unable to connect to CIFS host, will retry in 60 seconds...");
+ sleep (60); /* should just waiting and retrying fix authentication ??? */
}
else
{
- fprintf(stderr, "ERROR: Unable to connect to SAMBA host, trying next printer...");
+ fprintf(stderr, "ERROR: Unable to connect to CIFS host, trying next printer...");
return (1);
}
}
@@ -425,10 +425,10 @@ static struct cli_state
return NULL;
}
- if (!cli_send_tconX(cli, share, "?????",password, strlen(password)+1))
+ if (!cli_send_tconX(cli, share, "?????", password, strlen(password)+1))
{
+ fprintf(stderr, "ERROR: Tree connect failed (%s)\n", cli_errstr(cli));
cli_shutdown(cli);
- fprintf(stderr, "ERROR: Tree connect failed\n" );
return NULL;
}