projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Even better open-file error reports.
[dcpomatic.git]
/
src
/
lib
/
util.cc
diff --git
a/src/lib/util.cc
b/src/lib/util.cc
index 6a1f2b2848049dd088ebf8b12e1e750d1cfb519d..e497ecf3c8a36a6d0fe9d5f3e04b2d0839405c7a 100644
(file)
--- a/
src/lib/util.cc
+++ b/
src/lib/util.cc
@@
-422,7
+422,7
@@
digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t size)
while (i < int64_t (files.size()) && to_do > 0) {
FILE* f = fopen_boost (files[i], "rb");
if (!f) {
while (i < int64_t (files.size()) && to_do > 0) {
FILE* f = fopen_boost (files[i], "rb");
if (!f) {
- throw OpenFileError (files[i].string(), errno);
+ throw OpenFileError (files[i].string(), errno
, true
);
}
boost::uintmax_t this_time = min (to_do, boost::filesystem::file_size (files[i]));
}
boost::uintmax_t this_time = min (to_do, boost::filesystem::file_size (files[i]));
@@
-442,7
+442,7
@@
digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t size)
while (i >= 0 && to_do > 0) {
FILE* f = fopen_boost (files[i], "rb");
if (!f) {
while (i >= 0 && to_do > 0) {
FILE* f = fopen_boost (files[i], "rb");
if (!f) {
- throw OpenFileError (files[i].string(), errno);
+ throw OpenFileError (files[i].string(), errno
, true
);
}
boost::uintmax_t this_time = min (to_do, boost::filesystem::file_size (files[i]));
}
boost::uintmax_t this_time = min (to_do, boost::filesystem::file_size (files[i]));