Open nicopap opened 1 year ago
Export a
#[derive(Error, Debug)] struct NiceError { help: Option<Box<str>>, span_offset: Option<u32>, source: anyhow::Error, }
Now the user can return such an error from their custom argument parser impls, and we can check in the interpreter for them using downcasting, and use their inner offset/help messages in the full message.
Export a
Now the user can return such an error from their custom argument parser impls, and we can check in the interpreter for them using downcasting, and use their inner offset/help messages in the full message.