From c93305739ddb0d8fb960ea12c91b415d5d6465a0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 2 Oct 2021 19:17:33 +0800 Subject: [PATCH] nac3artiq: fix misleading error message --- nac3artiq/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index a86947dfe..34a54c0bb 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -80,7 +80,7 @@ impl Nac3 { exceptions::PyIOError::new_err(format!("failed to read input file: {}", 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 { id_to_type: self.builtins_ty.clone().into(),