Fix error format (#2095).

This commit is contained in:
Wilson Snyder 2020-12-12 22:26:50 -05:00
parent fb689bbb19
commit 53c4c7d540
2 changed files with 4 additions and 4 deletions

View File

@ -646,9 +646,9 @@ public:
if (modp->hierBlock()) {
refLocationp->v3error("Cannot access inside hierarchical block");
} else if (VN_IS(modp, NotFoundModule)) {
refLocationp->v3error(
"Dotted reference to cell that refers to missing module: "
<< modp->prettyNameQ());
refLocationp->v3error("Dotted reference to instance that refers to "
"missing module/interface: "
<< modp->prettyNameQ());
}
}
}

View File

@ -1,4 +1,4 @@
%Error: t/t_inst_missing_dot_bad.v:9:22: Dotted reference to cell that refers to missing module: 'missing'
%Error: t/t_inst_missing_dot_bad.v:9:22: Dotted reference to instance that refers to missing module/interface: 'missing'
9 | $display("a=", missing.a);
| ^~~~~~~
%Error: t/t_inst_missing_dot_bad.v:9:30: Can't find definition of 'a' in dotted variable: 'missing.a'