Skip to content

All error returned by pallet macro should have an error number linking to some full description. #334

Open
@gui1117

Description

Similarly to rustc --explain E0308 I think we can have a number for each error returned by the pallet macro.
And document the error with examples somewhere.

For example instead of:

error: Invalid pallet::error, expected item enum
  --> $DIR/error_wrong_item.rs:19:2
   |
19 |     pub struct Foo;
   |     ^^^

we should have:

error: Invalid pallet::error, expected item enum. Pallet error 21 see more at https://...#21
  --> $DIR/error_wrong_item.rs:19:2
   |
19 |     pub struct Foo;
   |     ^^^

Metadata

Assignees

No one assigned

    Labels

    I5-enhancementAn additional feature request.T1-FRAMEThis PR/Issue is related to core FRAME, the framework.T11-documentationThis PR/Issue is related to documentation.

    Type

    No type

    Projects

    • Status

      Draft
    • Status

      Backlog
    • Status

      To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions