mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat: add erg_compiler::compile_with_dependencies
This commit is contained in:
parent
121738da74
commit
17625884b9
7 changed files with 71 additions and 7 deletions
|
@ -614,7 +614,7 @@ impl From<CompileErrors> for ParseErrors {
|
|||
#[cfg(feature = "pylib")]
|
||||
impl std::convert::From<CompileErrors> for pyo3::PyErr {
|
||||
fn from(errs: CompileErrors) -> pyo3::PyErr {
|
||||
pyo3::exceptions::PyOSError::new_err(errs[0].to_string())
|
||||
pyo3::exceptions::PyOSError::new_err(format!("{} errors occurred\n{errs}", errs.len()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue