From 2217cfbdb7d078cbadf8c2416c75a89cf20621a1 Mon Sep 17 00:00:00 2001 From: mkhan Date: Wed, 28 Feb 2018 10:40:06 +1100 Subject: [PATCH] fix b --- package/mine.cc | 4 ++-- src/zlib.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;