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

Error handling: errors don't show variable name #188

Open
folex opened this issue Dec 8, 2021 · 0 comments
Open

Error handling: errors don't show variable name #188

folex opened this issue Dec 8, 2021 · 0 comments
Labels
C-dx category: developer experience improvements

Comments

@folex
Copy link
Member

folex commented Dec 8, 2021

For example, in this error, it's impossible to say which array is empty, records-fix or records-fix[0].relay_id.

    {
      "instruction": "call records-fix.$.[0].relay_id.[0] (\"peer\" \"timestamp_ms\") [] host_peer_time",
      "msg": "value '[]' does not contain element for idx = '0'",
      "peer_id": "12D3KooWD32M26ob1aNvqMUicpUH8D7SLjwz1W4GNjs8uYtJUdqS",
    }

For AIR lambdas, it would be great to show name of the variable that caused the error.

@folex folex added the C-dx category: developer experience improvements label Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-dx category: developer experience improvements
Projects
None yet
Development

No branches or pull requests

1 participant