Commit 3eca5758 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MetadataParser: Don't ignore errors when converting media to external

parent f81cf467
......@@ -602,6 +602,8 @@ Status MetadataAnalyzer::createFileAndMedia( IItem& item ) const
return Status::Fatal;
auto res = overrideExternalMedia( item, *media, *file, mediaType );
if ( res != Status::Success )
return res;
// IItem::setFile will update the task in db, so run it as part of
// the transation
item.setFile( std::move( file ) );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment