Skip to content

Commit a79825f

Browse files
Merge pull request #197 from sumleo/fix/aggregator-import-error-message
Fix incorrect error message when merging world imports
2 parents e1e684a + 8bcdd2f commit a79825f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/wac-types/src/aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl TypeAggregator {
227227
// We'll remap the source below and replace
228228
checker
229229
.is_subtype(*source_kind, types, target_kind, &self.types)
230-
.with_context(|| format!("mismatched type for export `{name}`"))?;
230+
.with_context(|| format!("mismatched type for import `{name}`"))?;
231231
}
232232

233233
let remapped = self.remap_item_kind(types, *source_kind, checker)?;

0 commit comments

Comments
 (0)