]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4: torture: Improve error messages in check_stream() and read_stream() to include...
authorJeremy Allison <jra@samba.org>
Fri, 25 Jun 2021 03:05:01 +0000 (20:05 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 25 Jun 2021 15:53:31 +0000 (15:53 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/vfs/fruit.c

index b3fd50a313293d1dc059298fdb2c20dd082b5f73..fa75879436835692d3052f2e28d72751ad95da6f 100644 (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;
        }