« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/yaml.js9
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});
   }
 }