Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session执行了错误的语句时无法提示错误信息 #128

Closed
zifeiYv opened this issue Aug 13, 2021 · 3 comments
Closed

session执行了错误的语句时无法提示错误信息 #128

zifeiYv opened this issue Aug 13, 2021 · 3 comments

Comments

@zifeiYv
Copy link

zifeiYv commented Aug 13, 2021

如题所述,当用session.execute()执行一个错误的语句时,返回值是一个空的ResultSet,如果能将错误信息返回,对于调试程序来说将会有极大的便利。

@HarrisChu
Copy link
Contributor

可以校验 ResultSet 的 is_succeeded,如果不是 true 的话,错误信息是 error_msg()

https://github.com/vesoft-inc/nebula-python/blob/master/nebula2/data/ResultSet.py#L59

@zifeiYv
Copy link
Author

zifeiYv commented Aug 23, 2021

感谢回复

@zifeiYv zifeiYv closed this as completed Aug 23, 2021
@zifeiYv
Copy link
Author

zifeiYv commented Aug 23, 2021

感谢回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants