More detailed ZIP errors.
authorCarl Hetherington <cth@carlh.net>
Sun, 14 Oct 2018 01:14:15 +0000 (02:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 14 Oct 2018 01:14:15 +0000 (02:14 +0100)
src/lib/internet.cc

index d6fb02a17cf8f7e7002cb83123aa916ea1a0c13a..15a9ca72c35c4648c5f54a3d3519e660a46cf4bf 100644 (file)
@@ -122,7 +122,7 @@ get_from_zip_url (string url, string file, bool pasv, function<void (boost::file
        zip_error_t error;
        zip_t* zip = zip_open_from_source (zip_source, ZIP_RDONLY, &error);
        if (!zip) {
-               return String::compose (_("Could not open downloaded ZIP file (%1)"), error.str ? error.str : "");
+               return String::compose (_("Could not open downloaded ZIP file (%1: 2)"), error.sys_err, error.str ? error.str : "");
        }
 
 #else