diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index 594bf174a..21b5e6fba 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -5900,7 +5900,9 @@ class LinkDotResolveVisitor final : public VNVisitor { } else { if (foundp) { UINFO(1, "Found sym node: " << foundp->nodep()); - nodep->v3error("Expecting a data type: " << nodep->prettyNameQ()); + nodep->v3error("Expecting a data type: " + << nodep->prettyNameQ() + << ", found: " << foundp->nodep()->prettyTypeName()); } else { nodep->v3error("Can't find typedef/interface: " << nodep->prettyNameQ()); } diff --git a/test_regress/t/t_lparam_assign_iface_typedef_bad.out b/test_regress/t/t_lparam_assign_iface_typedef_bad.out index 1f360a195..f3d566f2a 100644 --- a/test_regress/t/t_lparam_assign_iface_typedef_bad.out +++ b/test_regress/t/t_lparam_assign_iface_typedef_bad.out @@ -1,4 +1,4 @@ -%Error: t/t_lparam_assign_iface_typedef_bad.v:28:3: Expecting a data type: 'p0_rq_t' +%Error: t/t_lparam_assign_iface_typedef_bad.v:28:3: Expecting a data type: 'p0_rq_t', found: VAR 'p0_rq_t' 28 | p0_rq_t rq; | ^~~~~~~ ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance. diff --git a/test_regress/t/t_struct_type_bad.out b/test_regress/t/t_struct_type_bad.out index a2c650884..f57c1dd0c 100644 --- a/test_regress/t/t_struct_type_bad.out +++ b/test_regress/t/t_struct_type_bad.out @@ -1,4 +1,4 @@ -%Error: t/t_struct_type_bad.v:13:5: Expecting a data type: 'i' +%Error: t/t_struct_type_bad.v:13:5: Expecting a data type: 'i', found: VAR 'i' 13 | i badi; | ^ ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.