1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s4: torture: Improve error messages in check_stream() and read_stream() to include the filename and NTSTATUS.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2021-06-24 20:05:01 -07:00 committed by Ralph Boehme
parent 466aa8b6f5
commit 0d78398bee

View File

@ -1827,7 +1827,8 @@ static bool check_stream(struct smb2_tree *tree,
TALLOC_FREE(full_name);
return true;
}
torture_comment(tctx, "Unable to open stream %s\n", full_name);
torture_comment(tctx, "Unable to open stream %s: %s\n",
full_name, nt_errstr(status));
TALLOC_FREE(full_name);
return false;
}
@ -1901,8 +1902,8 @@ static ssize_t read_stream(struct smb2_tree *tree,
status = smb2_create(tree, mem_ctx, &create);
if (!NT_STATUS_IS_OK(status)) {
torture_comment(tctx, "Unable to open stream %s\n",
full_name);
torture_comment(tctx, "Unable to open stream %s: %s\n",
full_name, nt_errstr(status));
return -1;
}