From b903e818d1723df46d9759280d777fa9cdd23eae Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 27 Jan 2011 16:12:10 +0000 Subject: [PATCH] More detailed error message. git-svn-id: svn://svn.cc65.org/cc65/trunk@4926 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/lineinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */ -- 2.39.5