metaplex-foundation / shank

Extracts IDL from Solana Rust contracts
https://docs.rs/crate/shank_macro/latest
118 stars 23 forks source link

feat: attempt at improving error messages #5

Closed thlorenz closed 2 years ago

thlorenz commented 2 years ago

This is the first round at including more useful info in error messages, mainly the file path at this point.

The solution was applied to instruction enums, however I don't like it a lot and that's why waited to include it elsewhere. I'm thinking that compiler errors may do a better job here and our implementation isn't necessary.