diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-09 13:49:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-09 13:49:46 +0200 |
commit | 2de164c50981044be723629d4484a79639e92cf0 (patch) | |
tree | 0bf9badcfc770cadca9a868994588c84c1d8a8c5 /libbutl/lz4-stream.cxx | |
parent | 432a30e7e896d3049d5c2bde40604795f57b3441 (diff) |
Improve LZ4 exception descriptions
Diffstat (limited to 'libbutl/lz4-stream.cxx')
-rw-r--r-- | libbutl/lz4-stream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbutl/lz4-stream.cxx b/libbutl/lz4-stream.cxx index 43b0250..9d0ac99 100644 --- a/libbutl/lz4-stream.cxx +++ b/libbutl/lz4-stream.cxx @@ -126,7 +126,7 @@ namespace butl d_.in += p.first; if (p.second && d_.in != h_) - throw invalid_argument ("incomplete compressed content"); + throw invalid_argument ("incomplete LZ4 compressed content"); } h_ = d_.next (); // Clears d_.in. @@ -149,7 +149,7 @@ namespace butl (!is_->eof () && is_->good () && is_->peek () != istream::traits_type::eof ())) - throw invalid_argument ("junk after compressed content"); + throw invalid_argument ("junk after LZ4 compressed content"); } return r; |