Handle unexpected relative paths from __FILE__

Fixes comref#RIPD-133
This commit is contained in:
JoelKatz
2014-03-13 16:48:33 -07:00
parent 6df466c692
commit 028935a254

View File

@@ -61,7 +61,7 @@ String FatalError::Reporter::formatMessage (
String FatalError::Reporter::formatFilePath (char const* filePath)
{
return File::createFileWithoutCheckingPath (filePath).getFileName ();
return filePath;
}
//------------------------------------------------------------------------------
@@ -93,7 +93,7 @@ FatalError::FatalError (char const* message, char const* fileName, int lineNumbe
char const* const szStackBacktrace = backtraceString.toRawUTF8 ();
String const fileNameString = File (fileName).getFileName ();
String const fileNameString = fileName;
char const* const szFileName = fileNameString.toRawUTF8 ();