diff --git a/core/modules/migrate/src/Plugin/migrate/process/StaticMap.php b/core/modules/migrate/src/Plugin/migrate/process/StaticMap.php index dd7d6abb43..03e18996d8 100644 --- a/core/modules/migrate/src/Plugin/migrate/process/StaticMap.php +++ b/core/modules/migrate/src/Plugin/migrate/process/StaticMap.php @@ -140,7 +140,7 @@ public function transform($value, MigrateExecutableInterface $migrate_executable return $this->configuration['default_value']; } if (empty($this->configuration['bypass'])) { - throw new MigrateSkipRowException(sprintf('Skipping, no mapping found for destination property "%s" using value "%s".', $destination_property, print_r($value, TRUE))); + throw new MigrateSkipRowException(sprintf('Skipped (%s) for "%s" because no static mapping was encountered.', print_r($value, TRUE), $destination_property)); } else { return $value; diff --git a/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php b/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php index 460a420526..bd49835482 100644 --- a/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php +++ b/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php @@ -92,7 +92,7 @@ public function testMapWithInvalidSourceAndBypass() { * Tests when the source is invalid and there is no default value. */ public function testMapWithInvalidSourceAndNoDefaultValue() { - $this->setExpectedException(MigrateSkipRowException::class, sprintf('Skipping, no mapping found for destination property "destinationproperty" using value "%s".', print_r(['bar'], TRUE))); + $this->setExpectedException(MigrateSkipRowException::class, sprintf('Skipped (%s) for "destinationproperty" because no static mapping was encountered.', print_r(['bar'], TRUE))); $this->plugin->transform(['bar'], $this->migrateExecutable, $this->row, 'destinationproperty'); }