mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
Handle unexpected relative paths from __FILE__
Fixes comref#RIPD-133
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user