Skip to content

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

@folex

Description

@folex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-dxcategory: developer experience improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions