Better error message.
authorCarl Hetherington <cth@carlh.net>
Wed, 20 Sep 2023 20:57:03 +0000 (22:57 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Sep 2023 20:57:03 +0000 (22:57 +0200)
src/lib/zipper.cc

index 2c334dc947fe62c9f25c06d5b47856c623219e32..d095a27bb6d74d24dd65110393086569d85330e8 100644 (file)
@@ -57,7 +57,7 @@ Zipper::add (string name, string content)
        }
 
        if (zip_add(_zip, name.c_str(), source) == -1) {
-               throw runtime_error ("failed to add data to ZIP archive");
+               throw runtime_error(String::compose("failed to add data to ZIP archive (%1)", zip_strerror(_zip)));
        }
 }