feat: add erg_compiler::compile_with_dependencies

This commit is contained in:
Shunsuke Shibayama 2024-02-14 15:26:14 +09:00
parent 121738da74
commit 17625884b9
7 changed files with 71 additions and 7 deletions

View file

@ -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()))
}
}