Skip to content

Commit

Permalink
fix b
Browse files Browse the repository at this point in the history
  • Loading branch information
abumq committed Feb 27, 2018
1 parent d0f8726 commit 2217cfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package/mine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/zlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2217cfb

Please sign in to comment.