Log sound parsing errors in sound.log
This commit is contained in:
@@ -182,8 +182,8 @@ namespace OpenRA.FileFormats
|
||||
// If not, it will simply return false so we know we can't use it. If it is, it will start
|
||||
// parsing the data without any further failsafes, which means that it will crash on corrupted files
|
||||
// (that end prematurely or otherwise don't conform to the specifications despite the headers being OK).
|
||||
Log.Write("debug", "Failed to parse AUD file {0}. Error message:".F(fileName));
|
||||
Log.Write("debug", e.ToString());
|
||||
Log.Write("sound", "Failed to parse AUD file {0}. Error message:".F(fileName));
|
||||
Log.Write("sound", e.ToString());
|
||||
rawData = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -201,8 +201,8 @@ namespace OpenRA.FileFormats
|
||||
// If not, it will simply return false so we know we can't use it. If it is, it will start
|
||||
// parsing the data without any further failsafes, which means that it will crash on corrupted files
|
||||
// (that end prematurely or otherwise don't conform to the specifications despite the headers being OK).
|
||||
Log.Write("debug", "Failed to parse WAV file {0}. Error message:".F(fileName));
|
||||
Log.Write("debug", e.ToString());
|
||||
Log.Write("sound", "Failed to parse WAV file {0}. Error message:".F(fileName));
|
||||
Log.Write("sound", e.ToString());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user