Eval errors are now correctly spanned
parent
aa859a7566
commit
9f29211c55
|
@ -355,7 +355,10 @@ impl ExecEnv {
|
|||
}
|
||||
|
||||
let stmts = crate::parser::Parser::new(&code).init()?;
|
||||
self.eval_stmts(&stmts)?;
|
||||
self.eval_stmts(&stmts).map_err(|x| Error {
|
||||
span: span.clone(),
|
||||
..x
|
||||
})?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue