forked from AbleScript/ablescript
Eval errors are now correctly spanned
This commit is contained in:
parent
c764cda7c7
commit
0cf8576a77
|
@ -355,7 +355,10 @@ impl ExecEnv {
|
||||||
}
|
}
|
||||||
|
|
||||||
let stmts = crate::parser::Parser::new(&code).init()?;
|
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(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue