forked from M-Labs/nac3
1
0
Fork 0

nac3artiq: fix misleading error message

This commit is contained in:
Sebastien Bourdeauducq 2021-10-02 19:17:33 +08:00
parent ba93931758
commit c93305739d
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ impl Nac3 {
exceptions::PyIOError::new_err(format!("failed to read input file: {}", e)) exceptions::PyIOError::new_err(format!("failed to read input file: {}", e))
})?; })?;
let parser_result = parser::parse_program(&source).map_err(|e| { let parser_result = parser::parse_program(&source).map_err(|e| {
exceptions::PySyntaxError::new_err(format!("failed to parse host object source: {}", e)) exceptions::PySyntaxError::new_err(format!("parse error: {}", e))
})?; })?;
let resolver = Arc::new(Box::new(Resolver { let resolver = Arc::new(Box::new(Resolver {
id_to_type: self.builtins_ty.clone().into(), id_to_type: self.builtins_ty.clone().into(),