Fix asset_lookup and term_lookup exception messages #731

This commit is contained in:
Michael Stenta 2023-10-09 12:13:52 -04:00
parent 14852bf32a
commit 1e23d0b035
3 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixes
- [Fix asset_lookup and term_lookup exception messages #731](https://github.com/farmOS/farmOS/pull/731)
## [2.2.0] 2023-10-06
This is the second minor release of the farmOS 2.x branch, following

View File

@ -107,7 +107,7 @@ class AssetLookup extends EntityLookup {
// If there are still no results, throw an exception and skip the row.
if (empty($results)) {
throw new MigrateSkipRowException('Asset not found: @asset', ['@asset' => $value]);
throw new MigrateSkipRowException('Asset not found: ' . $value);
}
return $results;

View File

@ -64,7 +64,7 @@ class TermLookup extends EntityLookup {
// If there are no results, throw an exception and skip the row.
if (empty($results)) {
throw new MigrateSkipRowException('Term not found: @term', ['@term' => $value]);
throw new MigrateSkipRowException('Term not found: ' . $value);
}
return $results;