+ list<shared_ptr<dcp::DCPReadError> > errors;
+ dcp->read (true, &errors, true);
+ /** We accept and ignore EmptyAssetPathError but everything else is bad */
+ BOOST_FOREACH (shared_ptr<dcp::DCPReadError> j, errors) {
+ if (dynamic_pointer_cast<dcp::EmptyAssetPathError>(j)) {
+ LOG_WARNING("Empty path in ASSETMAP of %1", i.string());
+ } else {
+ boost::throw_exception(*j.get());
+ }
+ }