🚑 removed unsafe call to strerror #403
This commit is contained in:
parent
e4c2829aea
commit
8381cd6020
2 changed files with 2 additions and 2 deletions
|
@ -9077,7 +9077,7 @@ class basic_json
|
||||||
// immediately abort if stream is erroneous
|
// immediately abort if stream is erroneous
|
||||||
if (s.fail())
|
if (s.fail())
|
||||||
{
|
{
|
||||||
throw std::invalid_argument("stream error: " + std::string(strerror(errno)));
|
throw std::invalid_argument("stream error");
|
||||||
}
|
}
|
||||||
|
|
||||||
// fill buffer
|
// fill buffer
|
||||||
|
|
|
@ -9077,7 +9077,7 @@ class basic_json
|
||||||
// immediately abort if stream is erroneous
|
// immediately abort if stream is erroneous
|
||||||
if (s.fail())
|
if (s.fail())
|
||||||
{
|
{
|
||||||
throw std::invalid_argument("stream error: " + std::string(strerror(errno)));
|
throw std::invalid_argument("stream error");
|
||||||
}
|
}
|
||||||
|
|
||||||
// fill buffer
|
// fill buffer
|
||||||
|
|
Loading…
Reference in a new issue