Skip to content

Not enough information in error msg #6

Description

@julianzamt

Describe the bug
If the type attr is missing from an input, the msg error is

image

This is not enough information to know where the error comes from, as the type attr is bounded to a number of different fields, such as signers, inputs, etc.

To Reproduce
image

Here the type attr is missing from the fee_payer as input. The user wrong assumption was to expect that the type will be inferred, because the account is the fee_payer

Expected behavior
To include in the feedback a little more info to help the user to detect the source of the error (line number and/or CIDL section) or make the generator infer the type of the inputs if already defined (or could be infered) from the signers section.

Código CLI version:

  • Version v0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneThis has been merged to developEnhancementThis improve the product or Código's source code

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions