diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/yaml.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js index 1fd37b2f..caf414e5 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -262,7 +262,7 @@ function makeProcessDocument( thing[property] = value; } catch (caughtError) { skippedFields.add(field); - fieldValueErrors.push(new FieldValueError(field, property, value, caughtError)); + fieldValueErrors.push(new FieldValueError(field, value, caughtError)); } } @@ -346,18 +346,15 @@ export class FieldValueAggregateError extends AggregateError { } export class FieldValueError extends Error { - constructor(field, property, value, cause) { + constructor(field, value, cause) { const fieldText = colors.green(`"${field}"`); - const propertyText = - colors.green(property); - const valueText = inspect(value, {maxStringLength: 40}); super( - `Failed to set ${fieldText} field (${propertyText}) to ${valueText}`, + `Failed to set ${fieldText} field to ${valueText}`, {cause}); } } |