diff --git a/compiler/pstatmnt.pas b/compiler/pstatmnt.pas index 4485f1208a..9a89dd6169 100644 --- a/compiler/pstatmnt.pas +++ b/compiler/pstatmnt.pas @@ -968,7 +968,7 @@ implementation unit_found:=try_consume_unitsym_no_specialize(srsym,srsymtable,t,[],objname); if srsym=nil then begin - identifier_not_found(orgpattern); + identifier_not_found(objrealname); srsym:=generrorsym; end; if unit_found then