Skip to content

Commit

Permalink
[Remove] By-pass logprint-scanner restriction.
Browse files Browse the repository at this point in the history
Todo: Improve logprint-scanner instead of doing this..
  • Loading branch information
furszy committed Aug 1, 2021
1 parent 280ced3 commit 63e0be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/netbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,8 @@ std::string NetworkErrorString(int err)
nullptr, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
buf, ARRAYSIZE(buf), nullptr))
{
return strprintf("%s (%d)", std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>,wchar_t>().to_bytes(buf), err);
const auto& bufConvert = std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>,wchar_t>().to_bytes(buf);
return strprintf("%s (%d)", bufConvert, err);
} else {
return strprintf("Unknown error (%d)", err);
}
Expand Down

0 comments on commit 63e0be6

Please sign in to comment.