]> git.mxchange.org Git - flightgear.git/commitdiff
Better error reporting when dying because of too many nodex, normals, or
authorcurt <curt>
Wed, 19 May 1999 20:01:15 +0000 (20:01 +0000)
committercurt <curt>
Wed, 19 May 1999 20:01:15 +0000 (20:01 +0000)
texture coords.

Simulator/Objects/obj.cxx

index 6ac92a53db680b39350b90fd67578d4f9ea67c95..c868f7d8283e98a96381a5d124aba4a996fe213e 100644 (file)
@@ -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" ) {