mirror of
https://github.com/AxioDL/nod.git
synced 2025-12-08 21:17:51 +00:00
Integrated LogVisor for error gathering
This commit is contained in:
@@ -36,9 +36,9 @@ public:
|
||||
if (!fp)
|
||||
{
|
||||
#if NOD_UCS2
|
||||
fwprintf(stderr, L"Unable to open '%s' for reading\n", filepath.c_str());
|
||||
LogModule.report(LogVisor::Error, L"Unable to open '%s' for reading\n", filepath.c_str());
|
||||
#else
|
||||
fprintf(stderr, "Unable to open '%s' for reading\n", filepath.c_str());
|
||||
LogModule.report(LogVisor::Error, "Unable to open '%s' for reading\n", filepath.c_str());
|
||||
#endif
|
||||
return std::unique_ptr<IReadStream>();
|
||||
}
|
||||
@@ -67,9 +67,9 @@ public:
|
||||
if (!fp)
|
||||
{
|
||||
#if NOD_UCS2
|
||||
fwprintf(stderr, L"Unable to open '%s' for writing\n", filepath.c_str());
|
||||
LogModule.report(LogVisor::Error, L"Unable to open '%s' for writing\n", filepath.c_str());
|
||||
#else
|
||||
fprintf(stderr, "Unable to open '%s' for writing\n", filepath.c_str());
|
||||
LogModule.report(LogVisor::Error, "Unable to open '%s' for writing\n", filepath.c_str());
|
||||
#endif
|
||||
return std::unique_ptr<IWriteStream>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user