mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:torture: Improve error message in whoami test
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Sun Jan 14 22:09:24 CET 2018 on sn-devel-144
This commit is contained in:
parent
8d90f2a03e
commit
0580a23d64
@ -91,8 +91,13 @@ static struct smbcli_state *connect_to_server(struct torture_context *tctx,
|
|||||||
lpcfg_gensec_settings(tctx, tctx->lp_ctx));
|
lpcfg_gensec_settings(tctx, tctx->lp_ctx));
|
||||||
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
printf("failed to connect to //%s/%s: %s\n",
|
torture_comment(tctx,
|
||||||
host, share, nt_errstr(status));
|
"FATAL: Failed to connect to //%s/%s "
|
||||||
|
"with %s - %s\n",
|
||||||
|
host,
|
||||||
|
share,
|
||||||
|
cli_credentials_get_username(creds),
|
||||||
|
nt_errstr(status));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user