From: uz Date: Thu, 27 Jan 2011 16:12:10 +0000 (+0000) Subject: More detailed error message. X-Git-Tag: V2.13.3~534 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b903e818d1723df46d9759280d777fa9cdd23eae;p=cc65 More detailed error message. git-svn-id: svn://svn.cc65.org/cc65/trunk@4926 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */