projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More detailed errors from zip_close.
[dcpomatic.git]
/
src
/
lib
/
cinema_kdms.cc
diff --git
a/src/lib/cinema_kdms.cc
b/src/lib/cinema_kdms.cc
index 7952b7ab22e3f22e3b75f7bb03ea084791234721..158ce8179abc7aa5926c723a7332ff3182443df0 100644
(file)
--- 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) {
}
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)));
}
}
}
}