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

evaluateExpression does not return the error log #89

Open
thehowl opened this issue Sep 26, 2023 · 0 comments
Open

evaluateExpression does not return the error log #89

thehowl opened this issue Sep 26, 2023 · 0 comments

Comments

@thehowl
Copy link
Member

thehowl commented Sep 26, 2023

image

$ gnokey query vm/qeval --data 'gno.land/r/demo/chess'$'\n''Leaderboard("asd")'
Log: --= Error =--
Data: &errors.errorString{s:"invalid category"}
Msg Traces:
    0  /home/howl/go/pkg/mod/github.com/gnolang/[email protected]/gno.land/pkg/sdk/vm/keeper.go:387 - VM query eval panic: invalid category

It would be useful if the client parsed the error and returned it in the thrown exception, so the underlying error could be captured & parsed by any caller.

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

1 participant