From 447cc39f7bb125be5738aa23508943d9230d4bc5 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 19 May 1999 20:01:15 +0000 Subject: [PATCH] Better error reporting when dying because of too many nodex, normals, or texture coords. --- Simulator/Objects/obj.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Simulator/Objects/obj.cxx b/Simulator/Objects/obj.cxx index 6ac92a53d..c868f7d82 100644 --- a/Simulator/Objects/obj.cxx +++ b/Simulator/Objects/obj.cxx @@ -282,7 +282,8 @@ int fgObjLoad( const string& path, fgTILE *t) { vncount++; } else { FG_LOG( FG_TERRAIN, FG_ALERT, - "Read too many vertex normals ... dying :-(" ); + "Read too many vertex normals in " << path + << " ... dying :-(" ); exit(-1); } } else if ( token == "vt" ) { @@ -293,7 +294,8 @@ int fgObjLoad( const string& path, fgTILE *t) { vtcount++; } else { FG_LOG( FG_TERRAIN, FG_ALERT, - "Read too many vertex texture coords ... dying :-(" + "Read too many vertex texture coords in " << path + << " ... dying :-(" ); exit(-1); } @@ -306,7 +308,8 @@ int fgObjLoad( const string& path, fgTILE *t) { t->ncount++; } else { FG_LOG( FG_TERRAIN, FG_ALERT, - "Read too many nodes ... dying :-("); + "Read too many nodes in " << path + << " ... dying :-("); exit(-1); } } else if ( token == "t" ) {