Skip to content

Commit

Permalink
Merge pull request #10 from muflihun/develop
Browse files Browse the repository at this point in the history
fix b
  • Loading branch information
abumq authored Feb 27, 2018
2 parents a9c5661 + 2217cfb commit b42558d
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 b42558d

Please sign in to comment.