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 ) {