jbmusso / grex

JavaScript graph database client for TinkerPop2 Rexster
MIT License
46 stars 12 forks source link

Better handle error when executing an empty script #37

Open jbmusso opened 10 years ago

jbmusso commented 10 years ago

client.exec() and client.fetch() currently raise an exception when called with no argument.

TypeError: Cannot read property 'script' of undefined is currently thrown.

Grex should better handle these errors and return an explicit error message.