Core/Error: Remove starting / from file log
This commit is contained in:
parent
62d5e611f1
commit
f2ab31cc4b
|
|
@ -7,10 +7,10 @@ namespace Nz
|
||||||
constexpr std::string_view Error::TranslateFilepath(std::string_view file)
|
constexpr std::string_view Error::TranslateFilepath(std::string_view file)
|
||||||
{
|
{
|
||||||
if (std::size_t offset = file.rfind('/'); offset != file.npos)
|
if (std::size_t offset = file.rfind('/'); offset != file.npos)
|
||||||
return file.substr(offset);
|
return file.substr(offset + 1);
|
||||||
|
|
||||||
if (std::size_t offset = file.rfind('\\'); offset != file.npos)
|
if (std::size_t offset = file.rfind('\\'); offset != file.npos)
|
||||||
return file.substr(offset);
|
return file.substr(offset + 1);
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue