Commit 8381cd60 by Niels Lohmann

🚑 removed unsafe call to strerror #403

parent e4c2829a
...@@ -9077,7 +9077,7 @@ class basic_json ...@@ -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 ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment