Skip to content

evaluateExpression does not return the error log #89

Open
@thehowl

Description

@thehowl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions