projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78f3772
)
Better error message.
author
Carl Hetherington
<cth@carlh.net>
Wed, 20 Sep 2023 20:57:03 +0000
(22:57 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 20 Sep 2023 20:57:03 +0000
(22:57 +0200)
src/lib/zipper.cc
patch
|
blob
|
history
diff --git
a/src/lib/zipper.cc
b/src/lib/zipper.cc
index 2c334dc947fe62c9f25c06d5b47856c623219e32..d095a27bb6d74d24dd65110393086569d85330e8 100644
(file)
--- a/
src/lib/zipper.cc
+++ b/
src/lib/zipper.cc
@@
-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))
);
}
}