summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-08-29 13:10:20 +0000
committerGünther Deschner <gd@samba.org>2005-08-29 13:10:20 +0000
commita178bf503b72af81adce599ae6c31c6893438473 (patch)
tree8b76b38bd30cf86cd422b7f43361d5acd67cc980 /source
parent278c885b70929c42acaf832dd58118925430a645 (diff)
downloadsamba-a178bf503b72af81adce599ae6c31c6893438473.tar.gz
samba-a178bf503b72af81adce599ae6c31c6893438473.tar.xz
samba-a178bf503b72af81adce599ae6c31c6893438473.zip
r9736: be a little more verbose on error.
Guenther
Diffstat (limited to 'source')
-rw-r--r--source/client/smbspool.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/client/smbspool.c b/source/client/smbspool.c
index b1c17a26fcd..5d27fbe4c2b 100644
--- a/source/client/smbspool.c
+++ b/source/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;
}