From 1781f0148a6223f0a5cced5a28f1c14f013a5304 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 26 Apr 2004 05:29:16 +0000 Subject: [PATCH] fix error reporting --- stepmania/src/Model.cpp | 2 +- stepmania/src/RageModelGeometry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Model.cpp b/stepmania/src/Model.cpp index 27306e6d86..eebcffd1f3 100644 --- a/stepmania/src/Model.cpp +++ b/stepmania/src/Model.cpp @@ -72,7 +72,7 @@ void Model::Load( CString sFile ) LoadFromModelFile( sFile ); } -#define THROW RageException::Throw( "Parse at line %d: '%s'", sLine.c_str() ); +#define THROW RageException::Throw( "Parse error in \"%s\" at line %d: '%s'", sPath.c_str(), iLineNum, sLine.c_str() ); void Model::LoadFromModelFile( CString sPath ) { diff --git a/stepmania/src/RageModelGeometry.cpp b/stepmania/src/RageModelGeometry.cpp index 990f81914c..6d6cdc0140 100644 --- a/stepmania/src/RageModelGeometry.cpp +++ b/stepmania/src/RageModelGeometry.cpp @@ -66,7 +66,7 @@ void RageModelGeometry::OptimizeBones() } } -#define THROW RageException::Throw( "Parse at line %d: '%s'", sLine.c_str() ); +#define THROW RageException::Throw( "Parse error in \"%s\" at line %d: '%s'", sPath.c_str(), iLineNum, sLine.c_str() ); void RageModelGeometry::LoadMilkshapeAscii( CString sPath ) {