forked from AbleScript/ablescript
Eval errors are now correctly spanned
This commit is contained in:
parent
a8c603164c
commit
3ce85a11ee
|
@ -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 a new issue