diff --git a/core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php b/core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php index 62469e7..885acf9 100644 --- a/core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php +++ b/core/modules/migrate/src/Plugin/migrate/destination/EntityRevision.php @@ -49,7 +49,7 @@ protected function getEntity(Row $row, array $old_destination_id_values) { // If we fail to load the original entity something is wrong and we need // to return immediately. if (!$entity) { - return FALSE; + throw new MigrateException(sprintf('Unable to get entity %d', $entity_id)); } $entity->enforceIsNew(FALSE);