From 7627acea415eae16ec15883f0d4cc2eef5815a78 Mon Sep 17 00:00:00 2001 From: David Mak Date: Wed, 8 May 2024 18:24:09 +0800 Subject: [PATCH] core/type_inferencer: Fix error message --- nac3core/src/typecheck/type_inferencer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/typecheck/type_inferencer/mod.rs b/nac3core/src/typecheck/type_inferencer/mod.rs index cb2e7b43e..24006d826 100644 --- a/nac3core/src/typecheck/type_inferencer/mod.rs +++ b/nac3core/src/typecheck/type_inferencer/mod.rs @@ -943,7 +943,7 @@ impl<'a> Inferencer<'a> { if !self.unifier.unioned(arg1_dtype, expected_arg1_dtype) { return report_error( format!( - "Expected {} for second argument of {id}, got {}", + "Expected broadcast-compatible type of ndarray[{}, N] for second argument of {id}, got {}", self.unifier.stringify(expected_arg1_dtype), self.unifier.stringify(arg1_dtype), ).as_str(),