diff --git a/src/json.hpp b/src/json.hpp index 67d05cf2..4515ca67 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -9077,7 +9077,7 @@ class basic_json // immediately abort if stream is erroneous if (s.fail()) { - throw std::invalid_argument("stream error: " + std::string(strerror(errno))); + throw std::invalid_argument("stream error"); } // fill buffer diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index cbd8b220..6d649db3 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -9077,7 +9077,7 @@ class basic_json // immediately abort if stream is erroneous if (s.fail()) { - throw std::invalid_argument("stream error: " + std::string(strerror(errno))); + throw std::invalid_argument("stream error"); } // fill buffer