From baf5e6e00eb4e66f26e57be9e4f67fe3e1ff5d7c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 6 Jan 2024 09:37:30 -0400 Subject: data: WHOOPSIE --- src/data/things/cacheable-object.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/things/cacheable-object.js b/src/data/things/cacheable-object.js index c6f154c..1e7c7aa 100644 --- a/src/data/things/cacheable-object.js +++ b/src/data/things/cacheable-object.js @@ -180,7 +180,8 @@ export default class CacheableObject { throw new TypeError(`Validation failed for value ${newValue}`); } } catch (caughtError) { - throw new CacheableObjectPropertyValueError(property, oldValue, newValue, caughtError); + throw new CacheableObjectPropertyValueError( + property, oldValue, newValue, {cause: caughtError}); } } -- cgit 1.3.0-6-gf8a5