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

Yang Xia updated TINKERPOP-2912:
--------------------------------
    Priority: Critical  (was: Minor)

> 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
>            Priority: Critical
>
> 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