From 2de164c50981044be723629d4484a79639e92cf0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Sep 2021 13:49:11 +0200 Subject: Improve LZ4 exception descriptions --- libbutl/lz4-stream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbutl/lz4-stream.cxx') 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; -- cgit v1.1