diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:04:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:04:30 +0000 |
| commit | 152a96f2563adfc791eba4ae172139513b98d658 (patch) | |
| tree | f179d72e7cfb48d814ec2fadf246dfb797722922 /src/lib | |
| parent | 672b037f187d4ead23b5fe0a9d8ed60aeca85677 (diff) | |
More detailed errors from zip_close.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/cinema_kdms.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc index 7952b7ab2..158ce8179 100644 --- a/src/lib/cinema_kdms.cc +++ b/src/lib/cinema_kdms.cc @@ -74,7 +74,8 @@ CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, dcp::NameFormat nam } if (zip_close (zip) == -1) { - throw runtime_error ("failed to close ZIP archive"); + zip_error_t* e = zip_get_error (zip); + throw runtime_error (String::compose("failed to close ZIP archive (%1, %2)", zip_error_code_zip(e), zip_error_code_system(e))); } } |
