From 39c553661b354a7cddc8de80315dd99337f1dde2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Jan 2024 09:23:14 -0400 Subject: data, yaml: match Error constructors more closely when extending --- src/data/things/cacheable-object.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/data/things') diff --git a/src/data/things/cacheable-object.js b/src/data/things/cacheable-object.js index 6b8d5def..c6f154c0 100644 --- a/src/data/things/cacheable-object.js +++ b/src/data/things/cacheable-object.js @@ -358,10 +358,10 @@ export default class CacheableObject { export class CacheableObjectPropertyValueError extends Error { [Symbol.for('hsmusic.aggregate.translucent')] = true; - constructor(property, oldValue, newValue, error) { + constructor(property, oldValue, newValue, options) { super( `Error setting ${colors.green(property)} (${inspect(oldValue)} -> ${inspect(newValue)})`, - {cause: error}); + options); this.property = property; } -- cgit 1.3.0-6-gf8a5