1 2 3 4 5 6 7 8
use crate::location::Location; use thiserror::Error; #[derive(Error, Debug)] pub enum RugsError { #[error("Parsing error: {} at {}.", msg, loc)] Parse { msg: String, loc: Location }, }