diff --git a/src/ld65/lineinfo.c b/src/ld65/lineinfo.c index 5c4a22cdd..180bfdf90 100644 --- a/src/ld65/lineinfo.c +++ b/src/ld65/lineinfo.c @@ -142,9 +142,10 @@ void ReadLineInfoList (FILE* F, ObjData* O, Collection* LineInfos) * therefore be part of the line infos read from the object file. */ if (LineInfoIndex >= CollCount (&O->LineInfos)) { - Internal ("Invalid line info index %u in module `%s'", + Internal ("Invalid line info index %u in module `%s' - max is %u", LineInfoIndex, - GetObjFileName (O)); + GetObjFileName (O), + CollCount (&O->LineInfos)); } /* Add the line info to the collection */