diff --git a/package/mine.cc b/package/mine.cc index b77fbb7..6d8ec5b 100644 --- a/package/mine.cc +++ b/package/mine.cc @@ -1165,7 +1165,7 @@ std::string ZLib::compressString(const std::string& str) deflateEnd(&zs); if (ret != Z_STREAM_END) { - throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg")); + throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg"))); } return outstring; @@ -1202,7 +1202,7 @@ std::string ZLib::decompressString(const std::string& str) inflateEnd(&zs); if (ret != Z_STREAM_END) { - throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg")); + throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg"))); } return outstring; diff --git a/src/zlib.cc b/src/zlib.cc index 10c52ec..563be4f 100644 --- a/src/zlib.cc +++ b/src/zlib.cc @@ -78,7 +78,7 @@ std::string ZLib::compressString(const std::string& str) deflateEnd(&zs); if (ret != Z_STREAM_END) { - throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg")); + throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg"))); } return outstring; @@ -115,7 +115,7 @@ std::string ZLib::decompressString(const std::string& str) inflateEnd(&zs); if (ret != Z_STREAM_END) { - throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg")); + throw std::runtime_error("Exception during zlib decompression: (" + std::to_string(ret) + "): " + std::string((zs.msg != NULL ? zs.msg : "no msg"))); } return outstring;