You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2016/06/08 13:56:21 UTC

[jira] [Closed] (TINKERPOP-1324) Better error for invalid args to addV()

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

Marko A. Rodriguez closed TINKERPOP-1324.
-----------------------------------------
    Resolution: Fixed
      Assignee: Marko A. Rodriguez

Simple one line fix. I just added {{ElementHelper.legalPropertyKeyValueArray(keyValues)}}.

{code}
gremlin>  g = TinkerGraph.open().traversal()
==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
gremlin> g.addV('person','x',1)
The provided key/value array length must be a multiple of two
Display stack trace? [yN]
gremlin>
gremlin> g.addV(label,'person','x',1)
==>v[0]
{code}

> Better error for invalid args to addV()
> ---------------------------------------
>
>                 Key: TINKERPOP-1324
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1324
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.1.2-incubating
>            Reporter: stephen mallette
>            Assignee: Marko A. Rodriguez
>            Priority: Minor
>             Fix For: 3.1.3, 3.2.1
>
>
> Could use a better error for when the wrong number of arguments are being passed to {{addV()}}:
> {code}
> gremlin> g = TinkerGraph.open().traversal()
> ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
> gremlin> g.addV('person','x',1)
> 3
> Display stack trace? [yN] 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)