Commit 2951162a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

parser: Task: Catch potential DeviceRemovedException

parent 52c15d32
...@@ -399,6 +399,11 @@ bool Task::restoreLinkedEntities() ...@@ -399,6 +399,11 @@ bool Task::restoreLinkedEntities()
} }
fileFs = std::move( *it ); fileFs = std::move( *it );
} }
catch ( const fs::DeviceRemovedException& )
{
LOG_WARN( "Failed to restore file on an unmounted device: ", mrl );
return false;
}
catch ( const std::system_error& ex ) catch ( const std::system_error& ex )
{ {
// If we never found the file yet, we can delete the task. It will be // If we never found the file yet, we can delete the task. It will be
......
Markdown is supported
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