1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +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:
Andreas Schneider 2018-01-12 13:45:33 +01:00 committed by Andreas Schneider
parent 8d90f2a03e
commit 0580a23d64

View File

@ -91,8 +91,13 @@ static struct smbcli_state *connect_to_server(struct torture_context *tctx,
lpcfg_gensec_settings(tctx, tctx->lp_ctx));
if (!NT_STATUS_IS_OK(status)) {
printf("failed to connect to //%s/%s: %s\n",
host, share, nt_errstr(status));
torture_comment(tctx,
"FATAL: Failed to connect to //%s/%s "
"with %s - %s\n",
host,
share,
cli_credentials_get_username(creds),
nt_errstr(status));
return NULL;
}