Fix asset_lookup and term_lookup exception messages #731
This commit is contained in:
parent
14852bf32a
commit
1e23d0b035
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue