Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

No informative message on errors #17

Closed
juanjux opened this issue Mar 16, 2018 · 1 comment
Closed

No informative message on errors #17

juanjux opened this issue Mar 16, 2018 · 1 comment
Assignees
Labels

Comments

@juanjux
Copy link
Contributor

juanjux commented Mar 16, 2018

On any error, the driver always returns "message is not defined", example:

{
    "status": "error",
    "language": "javascript",
    "errors": [
        "message is not defined"
    ],
    "ast": null
}
@juanjux juanjux added the bug label Mar 16, 2018
@zurk
Copy link

zurk commented Apr 3, 2018

Yes, I see the same problem.
Python code:

import bblfsh
response = bblfsh.BblfshClient("0.0.0.0:9432").parse(filename="", contents="something random".encode(), language="Javascript")
print(response)

Result:

status: FATAL
errors: "message is not defined"
errors: "unsupported: non-object root node"
elapsed {
  nanos: 2309909
}
language: "javascript"

dennwc pushed a commit to dennwc/javascript-driver that referenced this issue Nov 8, 2018
Signed-off-by: Denys Smirnov <denys@sourced.tech>
This was referenced Nov 8, 2018
@dennwc dennwc closed this as completed in #44 Nov 8, 2018
dennwc pushed a commit that referenced this issue Nov 8, 2018
Signed-off-by: Denys Smirnov <denys@sourced.tech>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants