This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch 3.7-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/3.7-dev by this push:
     new 0bf18b2ff7 Fix stale fail() Step console output to include message 
argument
0bf18b2ff7 is described below

commit 0bf18b2ff77ae16ee1a111f0bca64a66705a2af5
Author: Stephen Mallette <[email protected]>
AuthorDate: Tue Jul 21 14:44:17 2026 +0000

    Fix stale fail() Step console output to include message argument
    
    The fail() Step section's static output block for the 'stephen' example
    omitted the string message argument passed to fail(). The Traversal> and
    Parent> lines showed bare fail()/__.fail() instead of the actual rendered
    output which includes the error-message text. Updated to match the real
    3.7-dev behavior: fail("stephen should exist") and
    __.fail("stephen should exist"). Separator lines adjusted to match the
    new longest line width.
    
    Assisted-by: Kiro:claude-opus-4-8
---
 docs/src/reference/the-traversal.asciidoc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/src/reference/the-traversal.asciidoc 
b/docs/src/reference/the-traversal.asciidoc
index d094ae742a..4eb2332ae2 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -1646,14 +1646,14 @@ gremlin> g.V().has('person','name','stephen').fold().
 ......2>            fail('stephen should exist')).
 ......3>   property('k',100)
 fail() Step Triggered
-===========================================================================================================================
+=================================================================================================================================================
 Message > stephen should exist
 Traverser> []
   Bulk   > 1
-Traversal> fail()
-Parent   > CoalesceStep 
[V().has("person","name","stephen").fold().coalesce(__.unfold(),__.fail()).property("k",(int)
 100)]
+Traversal> fail("stephen should exist")
+Parent   > CoalesceStep 
[V().has("person","name","stephen").fold().coalesce(__.unfold(),__.fail("stephen
 should exist")).property("k",(int) 100)]
 Metadata > {}
-===========================================================================================================================
+=================================================================================================================================================
 ----
 
 The code example above exemplifies the latter use case where there is 
essentially an assertion that there is a vertex

Reply via email to