core/type_inferencer: Fix error message

This commit is contained in:
David Mak 2024-05-08 18:24:09 +08:00
parent a777099ea8
commit 7627acea41

View File

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