All error returned by pallet
macro should have an error number linking to some full description. #334
Open
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;
| ^^^