[ 
https://issues.apache.org/jira/browse/TINKERPOP-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Mallette closed TINKERPOP-2912.
---------------------------------------
    Fix Version/s: 3.7.0
                   3.6.3
                   3.5.6
         Assignee: Stephen Mallette
       Resolution: Done

via CTR 
https://github.com/apache/tinkerpop/commit/fece764c460be08fb7ce72d63c49244ab6683d1b

> Improve error message for addE() when traverser is incorrect
> ------------------------------------------------------------
>
>                 Key: TINKERPOP-2912
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2912
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.5.5
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Critical
>             Fix For: 3.7.0, 3.6.3, 3.5.6
>
>
> For this:
> {code}
> gremlin> g.addV('A').as('a').addE('self').addE('self2').to('a')
> addE(self2) could not find a Vertex for from() - encountered: TinkerEdge
> Type ':help' or ':h' for help.
> Display stack trace? [yN]n
> {code}
> The traverser for the second {{addE('self2')}} is not a {{Vertex}}` - it is 
> the previously added {{Edge}} of {{addE('self')}}. Since `from()` is not 
> provided for the second {{addE('self2')}} it uses the current traverser and 
> we get the exception shown. The exception is a bit confusing for those who 
> don't realize what it means. Change the exception to: "addE(self2) could not 
> find a Vertex specified for from() - a TinkerEdge was specified instead" - or 
> perhaps a better message?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to