difftreelog
fix(evaluator) better error message for type mismatch
in: master
1 file changed
crates/jrsonnet-evaluator/src/error.rsdiffbeforeafterboth363637 #[error("variable is not defined: {0}")]37 #[error("variable is not defined: {0}")]38 VariableIsNotDefined(Rc<str>),38 VariableIsNotDefined(Rc<str>),39 #[error("type mismatch: expected {2}, got {1:?} {0}")]39 #[error("type mismatch: expected {}, got {2} {0}", .1.iter().map(|e| format!("{}", e)).collect::<Vec<_>>().join(", "))]40 TypeMismatch(&'static str, Vec<ValType>, ValType),40 TypeMismatch(&'static str, Vec<ValType>, ValType),41 #[error("no such field: {0}")]41 #[error("no such field: {0}")]42 NoSuchField(Rc<str>),42 NoSuchField(Rc<str>),