« get me outta code hell

data: WHOOPSIE - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-06 09:37:30 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-06 09:37:30 -0400
commitbaf5e6e00eb4e66f26e57be9e4f67fe3e1ff5d7c (patch)
tree9482f593904af7a771a07b870d7830ae653b1023 /src
parent39c553661b354a7cddc8de80315dd99337f1dde2 (diff)
data: WHOOPSIE
Diffstat (limited to 'src')
-rw-r--r--src/data/things/cacheable-object.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/data/things/cacheable-object.js b/src/data/things/cacheable-object.js
index c6f154c0..1e7c7aa8 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});
         }
       }